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