Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fhahn committed Jan 26, 2016
1 parent b285ebc commit 877ed0d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-25385.rs
Expand Up @@ -18,6 +18,6 @@ fn main() {
let a = 1i32;
foo!(a);

foo!(1.i32.foo());
foo!(1i32.foo());
//~^ ERROR attempted access of field `i32` on type `_`, but no field with that name was found
}
2 changes: 2 additions & 0 deletions src/test/compile-fail/issue-26093.rs
Expand Up @@ -16,5 +16,7 @@ macro_rules! not_an_lvalue {
}

fn main() {

0 = 42;
not_an_lvalue!(99);
}
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-26480.rs
Expand Up @@ -24,7 +24,7 @@ macro_rules! write {
unsafe {
write(stdout, $arr.as_ptr() as *const i8,
$arr.len() * size_of($arr[0]));
//~^ ERROR mismatched types: expected `u64`, found `usize`
//~^ ERROR mismatched types
}
}}
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-28308.rs
Expand Up @@ -10,5 +10,5 @@

fn main() {
assert!("foo");
//~^ ERROR cannot apply unary operator `!` to type `&'static str`'`
//~^ ERROR cannot apply unary operator `!` to type `&'static str`
}
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-29084.rs
Expand Up @@ -12,7 +12,7 @@ macro_rules! foo {
($d:expr) => {{
fn bar(d: u8) { }
bar(&mut $d);
//~^ ERROR mismatched types: expected `u8`, found `&mut u8`
//~^ ERROR mismatched types
}}
}

Expand Down

0 comments on commit 877ed0d

Please sign in to comment.