]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-impl-type-params-2.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / kindck / kindck-impl-type-params-2.rs
1 trait Foo {
2 }
3
4
5
6 impl<T:Copy> Foo for T {
7 }
8
9 fn take_param<T:Foo>(foo: &T) { }
10
11 fn main() {
12     let x: Box<_> = Box::new(3);
13     take_param(&x);
14     //~^ ERROR the trait bound `Box<{integer}>: Foo` is not satisfied
15 }