diff options
Diffstat (limited to 'tests/ui/wf/wf-trait-associated-type-bound.rs')
-rw-r--r-- | tests/ui/wf/wf-trait-associated-type-bound.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/wf/wf-trait-associated-type-bound.rs b/tests/ui/wf/wf-trait-associated-type-bound.rs new file mode 100644 index 000000000..2f20e65e5 --- /dev/null +++ b/tests/ui/wf/wf-trait-associated-type-bound.rs @@ -0,0 +1,14 @@ +// Test that we check associated type bounds for WFedness. + +#![feature(associated_type_defaults)] + +#![allow(dead_code)] + +trait ExtraCopy<T:Copy> { } + +trait SomeTrait<T> { + type Type1: ExtraCopy<T>; //~ ERROR E0277 +} + + +fn main() { } |