2022-01-18 20:27:15 -06:00
|
|
|
// run-rustfix
|
2015-11-21 03:37:50 -06:00
|
|
|
fn main() {
|
2021-07-07 11:25:46 -05:00
|
|
|
assert_eq(1, 1);
|
|
|
|
//~^ ERROR expected function, found macro `assert_eq`
|
2022-01-18 20:27:15 -06:00
|
|
|
assert_eq { 1, 1 };
|
|
|
|
//~^ ERROR expected struct, variant or union type, found macro `assert_eq`
|
|
|
|
//~| ERROR expected identifier, found `1`
|
|
|
|
//~| ERROR expected identifier, found `1`
|
|
|
|
assert[true];
|
|
|
|
//~^ ERROR expected value, found macro `assert`
|
2015-11-21 03:37:50 -06:00
|
|
|
}
|