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