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