Skip to content

Commit 877ed0d

Browse files
committed
Update tests
1 parent b285ebc commit 877ed0d

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/test/compile-fail/issue-25385.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ fn main() {
1818
let a = 1i32;
1919
foo!(a);
2020

21-
foo!(1.i32.foo());
21+
foo!(1i32.foo());
2222
//~^ ERROR attempted access of field `i32` on type `_`, but no field with that name was found
2323
}

src/test/compile-fail/issue-26093.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ macro_rules! not_an_lvalue {
1616
}
1717

1818
fn main() {
19+
20+
0 = 42;
1921
not_an_lvalue!(99);
2022
}

src/test/compile-fail/issue-26480.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ macro_rules! write {
2424
unsafe {
2525
write(stdout, $arr.as_ptr() as *const i8,
2626
$arr.len() * size_of($arr[0]));
27-
//~^ ERROR mismatched types: expected `u64`, found `usize`
27+
//~^ ERROR mismatched types
2828
}
2929
}}
3030
}

src/test/compile-fail/issue-28308.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
fn main() {
1212
assert!("foo");
13-
//~^ ERROR cannot apply unary operator `!` to type `&'static str`'`
13+
//~^ ERROR cannot apply unary operator `!` to type `&'static str`
1414
}

src/test/compile-fail/issue-29084.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ macro_rules! foo {
1212
($d:expr) => {{
1313
fn bar(d: u8) { }
1414
bar(&mut $d);
15-
//~^ ERROR mismatched types: expected `u8`, found `&mut u8`
15+
//~^ ERROR mismatched types
1616
}}
1717
}
1818

0 commit comments

Comments
 (0)