]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-impl-type-params-2.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[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 }