]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | #![feature(box_syntax)] |
223e47cc | 2 | |
9346a6ac | 3 | trait Foo { |
223e47cc LB |
4 | } |
5 | ||
1a4d82fc | 6 | impl<T:Copy> Foo for T { |
223e47cc LB |
7 | } |
8 | ||
1a4d82fc | 9 | fn take_param<T:Foo>(foo: &T) { } |
223e47cc LB |
10 | |
11 | fn main() { | |
c34b1796 | 12 | let x: Box<_> = box 3; |
1a4d82fc | 13 | take_param(&x); |
1b1a35ee | 14 | //~^ ERROR the trait bound `Box<{integer}>: Foo` is not satisfied |
223e47cc | 15 | } |