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