diff options
Diffstat (limited to 'tests/ui/proc-macro/non-root.stderr')
-rw-r--r-- | tests/ui/proc-macro/non-root.stderr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/non-root.stderr b/tests/ui/proc-macro/non-root.stderr new file mode 100644 index 000000000..90f94b677 --- /dev/null +++ b/tests/ui/proc-macro/non-root.stderr @@ -0,0 +1,8 @@ +error: functions tagged with `#[proc_macro]` must currently reside in the root of the crate + --> $DIR/non-root.rs:11:5 + | +LL | pub fn foo(arg: TokenStream) -> TokenStream { arg } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to previous error + |