]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/non-root.rs
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / proc-macro / non-root.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type = "proc-macro"]
5
6 extern crate proc_macro;
7 use proc_macro::*;
8
9 fn foo(arg: TokenStream) -> TokenStream {
10     #[proc_macro]
11     pub fn foo(arg: TokenStream) -> TokenStream { arg }
12     //~^ ERROR functions tagged with `#[proc_macro]` must currently reside in the root of the crate
13
14     arg
15 }