diff options
Diffstat (limited to 'tests/ui/traits/non_lifetime_binders/missing-assoc-item.rs')
-rw-r--r-- | tests/ui/traits/non_lifetime_binders/missing-assoc-item.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/traits/non_lifetime_binders/missing-assoc-item.rs b/tests/ui/traits/non_lifetime_binders/missing-assoc-item.rs new file mode 100644 index 000000000..50f0152e9 --- /dev/null +++ b/tests/ui/traits/non_lifetime_binders/missing-assoc-item.rs @@ -0,0 +1,11 @@ +#![feature(non_lifetime_binders)] +//~^ WARN the feature `non_lifetime_binders` is incomplete + +fn f() +where + for<B> B::Item: Send, + //~^ ERROR ambiguous associated type +{ +} + +fn main() {} |