summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/non_lifetime_binders/bad-copy-cond.rs
blob: 506cad25f630ceb6408a7c3a5f6c42052d4d2074 (plain)
1
2
3
4
5
6
7
8
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
}