2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2022-01-19 02:27:15 +00:00
|
|
|
fn main() {
|
|
|
|
assert_eq!(1, 1);
|
|
|
|
//~^ ERROR expected function, found macro `assert_eq`
|
|
|
|
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`
|
|
|
|
}
|