Skip to content

Commit f7c6178

Browse files
committed
Fix tests
1 parent 27a23db commit f7c6178

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ impl<'a> Parser<'a> {
779779

780780
pub fn parse_ident_attr(&mut self) -> PResult<'a, ast::Ident> {
781781
match self.token {
782-
token::Ident(i) if i.name == keywords::SelfType.name() {
782+
token::Ident(i) if i.name == keywords::SelfType.name() => {
783783
self.bump();
784784
Ok(i)
785785
}

src/test/compile-fail/const-eval-overflow-4b.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const A_I8_T
2222
: [u32; (i8::MAX as i8 + 1u8) as usize]
2323
//~^ ERROR mismatched types
2424
//~| expected i8, found u8
25-
//~| ERROR the trait bound `i8: std::ops::Add<u8>` is not satisfied
25+
//~| ERROR cannot add `u8` to `i8`
2626
= [0; (i8::MAX as usize) + 1];
2727

2828

src/test/compile-fail/ufcs-qpath-self-mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::ops::Add;
1212

1313
fn main() {
1414
<i32 as Add<u32>>::add(1, 2);
15-
//~^ ERROR `i32: std::ops::Add<u32>` is not satisfied
15+
//~^ ERROR cannot add `u32` to `i32`
1616
<i32 as Add<i32>>::add(1u32, 2);
1717
//~^ ERROR mismatched types
1818
<i32 as Add<i32>>::add(1, 2u32);

0 commit comments

Comments
 (0)