summaryrefslogtreecommitdiffstats
path: root/src/test/ui/kindck/kindck-impl-type-params-2.rs
blob: 8950fc51e643c67993dd28cf442211d89b588202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait Foo {
}



impl<T:Copy> Foo for T {
}

fn take_param<T:Foo>(foo: &T) { }

fn main() {
    let x: Box<_> = Box::new(3);
    take_param(&x);
    //~^ ERROR the trait bound `Box<{integer}>: Copy` is not satisfied
}