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