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