]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/resolve-hint-macro.rs
Shrink suggestion span of argument mismatch error
[rust.git] / src / test / ui / resolve / resolve-hint-macro.rs
1 // run-rustfix
2 fn main() {
3     assert_eq(1, 1);
4     //~^ ERROR expected function, found macro `assert_eq`
5     assert_eq { 1, 1 };
6     //~^ ERROR expected struct, variant or union type, found macro `assert_eq`
7     //~| ERROR expected identifier, found `1`
8     //~| ERROR expected identifier, found `1`
9     assert[true];
10     //~^ ERROR expected value, found macro `assert`
11 }