Update tests

This commit is contained in:
Florian Hahn 2016-01-24 00:51:15 +01:00
parent b285ebc48e
commit 877ed0d068
5 changed files with 6 additions and 4 deletions

View File

@ -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
}

View File

@ -16,5 +16,7 @@ macro_rules! not_an_lvalue {
}
fn main() {
0 = 42;
not_an_lvalue!(99);
}

View File

@ -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
}
}}
}

View File

@ -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`
}

View File

@ -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
}}
}