about summary refs log tree commit diff
path: root/tests/ui/resolve/resolve-hint-macro.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/resolve-hint-macro.fixed')
-rw-r--r--tests/ui/resolve/resolve-hint-macro.fixed11
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 00000000000..54e01608498
--- /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`
+}