]> git.proxmox.com Git - rustc.git/blame - src/test/ui/kindck/kindck-impl-type-params-2.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / kindck / kindck-impl-type-params-2.rs
CommitLineData
1a4d82fc 1#![feature(box_syntax)]
223e47cc 2
9346a6ac 3trait Foo {
223e47cc
LB
4}
5
1a4d82fc 6impl<T:Copy> Foo for T {
223e47cc
LB
7}
8
1a4d82fc 9fn take_param<T:Foo>(foo: &T) { }
223e47cc
LB
10
11fn 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}