diff options
Diffstat (limited to 'tests/ui/resolve/resolve-hint-macro.rs')
-rw-r--r-- | tests/ui/resolve/resolve-hint-macro.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/resolve/resolve-hint-macro.rs b/tests/ui/resolve/resolve-hint-macro.rs new file mode 100644 index 000000000..f16e8c075 --- /dev/null +++ b/tests/ui/resolve/resolve-hint-macro.rs @@ -0,0 +1,11 @@ +// run-rustfix +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` +} |