Fix E0229 unit tests
This commit is contained in:
parent
40b7ace386
commit
51a270f5e7
@ -20,7 +20,9 @@ impl Foo for isize {
|
||||
fn boo(&self) -> usize { 42 }
|
||||
}
|
||||
|
||||
fn baz<I>(x: &<I as Foo<A=Bar>>::A) {} //~ ERROR E0229
|
||||
fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
|
||||
//~^ ERROR associated type bindings are not allowed here [E0229]
|
||||
//~| NOTE associate type not allowed here
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ pub trait D {
|
||||
fn f<T>(self)
|
||||
where T<Bogus = Foo>: A;
|
||||
//~^ ERROR associated type bindings are not allowed here [E0229]
|
||||
//~| NOTE associate type not allowed here
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
@ -14,6 +14,7 @@ pub trait D {
|
||||
fn f<T>(self)
|
||||
where T<Bogus = Self::AlsoBogus>: A;
|
||||
//~^ ERROR associated type bindings are not allowed here [E0229]
|
||||
//~| NOTE associate type not allowed here
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
Loading…
Reference in New Issue
Block a user