2015-08-11 13:20:27 -05:00
|
|
|
// Test that we check struct fields for WFedness.
|
|
|
|
|
|
|
|
#![feature(associated_type_defaults)]
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-08-11 13:20:27 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
struct IsCopy<T:Copy> {
|
|
|
|
value: T
|
|
|
|
}
|
|
|
|
|
|
|
|
enum AnotherEnum<A> {
|
|
|
|
AnotherVariant {
|
|
|
|
f: IsCopy<A> //~ ERROR E0277
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-08-11 13:20:27 -05:00
|
|
|
fn main() { }
|