File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff 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
2527fn main ( ) {
2628}
Original file line number Diff line number Diff 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
2122fn main ( ) { }
Original file line number Diff line number Diff 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
1920fn main ( ) { }
You can’t perform that action at this time.
0 commit comments