File tree 3 files changed +5
-1
lines changed
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 {
20
20
fn boo ( & self ) -> usize { 42 }
21
21
}
22
22
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
24
26
25
27
fn main ( ) {
26
28
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub trait D {
16
16
fn f < T > ( self )
17
17
where T < Bogus = Foo > : A ;
18
18
//~^ ERROR associated type bindings are not allowed here [E0229]
19
+ //~| NOTE associate type not allowed here
19
20
}
20
21
21
22
fn main ( ) { }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub trait D {
14
14
fn f < T > ( self )
15
15
where T < Bogus = Self :: AlsoBogus > : A ;
16
16
//~^ ERROR associated type bindings are not allowed here [E0229]
17
+ //~| NOTE associate type not allowed here
17
18
}
18
19
19
20
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments