Skip to content

Commit 51a270f

Browse files
author
Matthias Rabault
committed
Fix E0229 unit tests
1 parent 40b7ace commit 51a270f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/test/compile-fail/E0229.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ impl Foo for isize {
2020
fn boo(&self) -> usize { 42 }
2121
}
2222

23-
fn baz<I>(x: &<I as Foo<A=Bar>>::A) {} //~ ERROR E0229
23+
fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
24+
//~^ ERROR associated type bindings are not allowed here [E0229]
25+
//~| NOTE associate type not allowed here
2426

2527
fn main() {
2628
}

src/test/compile-fail/issue-23543.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub trait D {
1616
fn f<T>(self)
1717
where T<Bogus = Foo>: A;
1818
//~^ ERROR associated type bindings are not allowed here [E0229]
19+
//~| NOTE associate type not allowed here
1920
}
2021

2122
fn main() {}

src/test/compile-fail/issue-23544.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub trait D {
1414
fn f<T>(self)
1515
where T<Bogus = Self::AlsoBogus>: A;
1616
//~^ ERROR associated type bindings are not allowed here [E0229]
17+
//~| NOTE associate type not allowed here
1718
}
1819

1920
fn main() {}

0 commit comments

Comments
 (0)