diff options
Diffstat (limited to 'tests/ui/traits/non_lifetime_binders/bad-copy-cond.rs')
-rw-r--r-- | tests/ui/traits/non_lifetime_binders/bad-copy-cond.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/traits/non_lifetime_binders/bad-copy-cond.rs b/tests/ui/traits/non_lifetime_binders/bad-copy-cond.rs new file mode 100644 index 000000000..506cad25f --- /dev/null +++ b/tests/ui/traits/non_lifetime_binders/bad-copy-cond.rs @@ -0,0 +1,9 @@ +#![feature(non_lifetime_binders)] +//~^ WARN the feature `non_lifetime_binders` is incomplete + +fn foo() where for<T> T: Copy {} + +fn main() { + foo(); + //~^ ERROR the trait bound `T: Copy` is not satisfied +} |