1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
23 fn explode(x: Foo<uint>) {}
24 //~^ ERROR failed to find an implementation
25 //~^^ ERROR instantiating a type parameter with an incompatible type
27 fn kaboom(y: Bar<f32>) {}
28 //~^ ERROR failed to find an implementation
29 //~^^ ERROR instantiating a type parameter with an incompatible type
36 //~^ ERROR failed to find an implementation
37 //~^^ ERROR instantiating a type parameter with an incompatible type
42 //~^ ERROR failed to find an implementation
43 //~^^ ERROR instantiating a type parameter with an incompatible type
48 //~^ ERROR failed to find an implementation
49 //~^^ ERROR instantiating a type parameter with an incompatible type
54 //~^ ERROR failed to find an implementation
55 //~^^ ERROR instantiating a type parameter with an incompatible type
56 EvenMoreBadness(Bar<T>),
65 impl PolyTrait<Foo<uint>> for Struct {
66 //~^ ERROR failed to find an implementation
67 //~^^ ERROR instantiating a type parameter with an incompatible type
72 let bar: Bar<f64> = return;
73 //~^ ERROR failed to find an implementation
74 //~^^ ERROR instantiating a type parameter with an incompatible type