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
31 impl<T> Foo<T> { //~ ERROR failed to find an implementation
32 //~^ ERROR instantiating a type parameter with an incompatible type
37 //~^ ERROR failed to find an implementation
38 //~^^ ERROR instantiating a type parameter with an incompatible type
43 //~^ ERROR failed to find an implementation
44 //~^^ ERROR instantiating a type parameter with an incompatible type
49 //~^ ERROR failed to find an implementation
50 //~^^ ERROR instantiating a type parameter with an incompatible type
55 //~^ ERROR failed to find an implementation
56 //~^^ ERROR instantiating a type parameter with an incompatible type
57 EvenMoreBadness(Bar<T>),
66 impl PolyTrait<Foo<uint>> for Struct {
67 //~^ ERROR failed to find an implementation
68 //~^^ ERROR instantiating a type parameter with an incompatible type
73 let bar: Bar<f64> = return;
74 //~^ ERROR failed to find an implementation
75 //~^^ ERROR instantiating a type parameter with an incompatible type