File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -779,7 +779,7 @@ impl<'a> Parser<'a> {
779
779
780
780
pub fn parse_ident_attr ( & mut self ) -> PResult < ' a , ast:: Ident > {
781
781
match self . token {
782
- token:: Ident ( i) if i. name == keywords:: SelfType . name ( ) {
782
+ token:: Ident ( i) if i. name == keywords:: SelfType . name ( ) => {
783
783
self . bump ( ) ;
784
784
Ok ( i)
785
785
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const A_I8_T
22
22
: [ u32 ; ( i8:: MAX as i8 + 1u8 ) as usize ]
23
23
//~^ ERROR mismatched types
24
24
//~| expected i8, found u8
25
- //~| ERROR the trait bound `i8: std::ops::Add<u8>` is not satisfied
25
+ //~| ERROR cannot add `u8` to `i8`
26
26
= [ 0 ; ( i8:: MAX as usize ) + 1 ] ;
27
27
28
28
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use std::ops::Add;
12
12
13
13
fn main ( ) {
14
14
<i32 as Add < u32 > >:: add ( 1 , 2 ) ;
15
- //~^ ERROR `i32: std::ops::Add< u32>` is not satisfied
15
+ //~^ ERROR cannot add ` u32` to `i32`
16
16
<i32 as Add < i32 > >:: add ( 1u32 , 2 ) ;
17
17
//~^ ERROR mismatched types
18
18
<i32 as Add < i32 > >:: add ( 1 , 2u32 ) ;
You can’t perform that action at this time.
0 commit comments