]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-impl-type-params-2.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }