parent
e024017f60
commit
2df3a5b0d1
3 changed files with 21 additions and 13 deletions
|
|
@ -28,7 +28,8 @@ fn kaboom(y: Bar<f32>) {}
|
|||
//~^ ERROR failed to find an implementation
|
||||
//~^^ ERROR instantiating a type parameter with an incompatible type
|
||||
|
||||
impl<T> Foo<T> {
|
||||
impl<T> Foo<T> { //~ ERROR failed to find an implementation
|
||||
//~^ ERROR instantiating a type parameter with an incompatible type
|
||||
fn uhoh() {}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -76,6 +76,8 @@ trait T3<Sized? Z> {
|
|||
struct S4<Y>;
|
||||
impl<Sized? X> T3<X> for S4<X> { //~ ERROR instantiating a type parameter with an incompatible type
|
||||
}
|
||||
impl<Sized? X> S4<X> { //~ ERROR instantiating a type parameter with an incompatible type
|
||||
}
|
||||
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue