summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/pub-method-macro.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/pub-method-macro.stderr')
-rw-r--r--tests/ui/parser/pub-method-macro.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/pub-method-macro.stderr b/tests/ui/parser/pub-method-macro.stderr
new file mode 100644
index 000000000..7c7a90926
--- /dev/null
+++ b/tests/ui/parser/pub-method-macro.stderr
@@ -0,0 +1,10 @@
+error: can't qualify macro invocation with `pub`
+ --> $DIR/pub-method-macro.rs:17:9
+ |
+LL | pub defn!(f);
+ | ^^^ help: remove the visibility
+ |
+ = help: try adjusting the macro to put `pub` inside the invocation
+
+error: aborting due to previous error
+