Skip to content

Commit

Permalink
Fix E0229 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Rabault committed Aug 5, 2016
1 parent 40b7ace commit 51a270f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/compile-fail/E0229.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
1 change: 1 addition & 0 deletions src/test/compile-fail/issue-23543.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
1 change: 1 addition & 0 deletions src/test/compile-fail/issue-23544.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

0 comments on commit 51a270f

Please sign in to comment.