diff options
Diffstat (limited to 'tests/ui/wf/wf-struct-field.rs')
| -rw-r--r-- | tests/ui/wf/wf-struct-field.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/wf/wf-struct-field.rs b/tests/ui/wf/wf-struct-field.rs new file mode 100644 index 00000000000..63f8b438251 --- /dev/null +++ b/tests/ui/wf/wf-struct-field.rs @@ -0,0 +1,16 @@ +// Test that we check struct fields for WFedness. + +#![feature(associated_type_defaults)] + +#![allow(dead_code)] + +struct IsCopy<T:Copy> { + value: T +} + +struct SomeStruct<A> { + data: IsCopy<A> //~ ERROR E0277 +} + + +fn main() { } |
