Fix E0229 unit tests

This commit is contained in:
Matthias Rabault 2016-08-05 20:11:26 +02:00
parent 40b7ace386
commit 51a270f5e7
3 changed files with 5 additions and 1 deletions

View File

@ -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() {
}

View File

@ -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() {}

View File

@ -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() {}