]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-enum-bound.rs
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / wf / wf-enum-bound.rs
1 // Test that we check enum bounds for WFedness.
2
3 #![feature(associated_type_defaults)]
4
5 #![allow(dead_code)]
6
7 trait ExtraCopy<T:Copy> { }
8
9 enum SomeEnum<T,U>
10     where T: ExtraCopy<U> //~ ERROR E0277
11 {
12     SomeVariant(T,U)
13 }
14
15
16 fn main() { }