2015-08-07 12:31:42 -05:00
|
|
|
// Test that we check struct fields for WFedness.
|
|
|
|
|
|
|
|
#![feature(associated_type_defaults)]
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-08-07 12:31:42 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
struct IsCopy<T:Copy> {
|
|
|
|
value: T
|
|
|
|
}
|
|
|
|
|
|
|
|
enum SomeEnum<A> {
|
|
|
|
SomeVariant(IsCopy<A>) //~ ERROR E0277
|
|
|
|
}
|
|
|
|
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-08-07 12:31:42 -05:00
|
|
|
fn main() { }
|