Fix tests
This commit is contained in:
parent
27a23db660
commit
f7c61783e4
@ -779,7 +779,7 @@ impl<'a> Parser<'a> {
|
||||
|
||||
pub fn parse_ident_attr(&mut self) -> PResult<'a, ast::Ident> {
|
||||
match self.token {
|
||||
token::Ident(i) if i.name == keywords::SelfType.name() {
|
||||
token::Ident(i) if i.name == keywords::SelfType.name() => {
|
||||
self.bump();
|
||||
Ok(i)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ const A_I8_T
|
||||
: [u32; (i8::MAX as i8 + 1u8) as usize]
|
||||
//~^ ERROR mismatched types
|
||||
//~| expected i8, found u8
|
||||
//~| ERROR the trait bound `i8: std::ops::Add<u8>` is not satisfied
|
||||
//~| ERROR cannot add `u8` to `i8`
|
||||
= [0; (i8::MAX as usize) + 1];
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ use std::ops::Add;
|
||||
|
||||
fn main() {
|
||||
<i32 as Add<u32>>::add(1, 2);
|
||||
//~^ ERROR `i32: std::ops::Add<u32>` is not satisfied
|
||||
//~^ ERROR cannot add `u32` to `i32`
|
||||
<i32 as Add<i32>>::add(1u32, 2);
|
||||
//~^ ERROR mismatched types
|
||||
<i32 as Add<i32>>::add(1, 2u32);
|
||||
|
Loading…
Reference in New Issue
Block a user