2015-08-07 13:31:42 -04:00
|
|
|
// Test that we check struct fields for WFedness.
|
|
|
|
|
|
|
|
#![feature(associated_type_defaults)]
|
2018-10-31 00:18:11 +01:00
|
|
|
|
2015-08-07 13:31:42 -04:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
struct IsCopy<T:Copy> {
|
|
|
|
value: T
|
|
|
|
}
|
|
|
|
|
|
|
|
struct SomeStruct<A> {
|
|
|
|
data: IsCopy<A> //~ ERROR E0277
|
|
|
|
}
|
|
|
|
|
2018-10-31 00:18:11 +01:00
|
|
|
|
2015-08-07 13:31:42 -04:00
|
|
|
fn main() { }
|