1 error: mismatched attribute proc macro signature
2 --> $DIR/signature-proc-macro-attribute.rs:10:1
4 LL | pub fn bad_input(input: String) -> TokenStream {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attribute proc macro must have two arguments of type `proc_macro::TokenStream`
7 error: mismatched attribute proc macro signature
8 --> $DIR/signature-proc-macro-attribute.rs:16:42
10 LL | pub fn bad_output(input: TokenStream) -> String {
11 | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
13 = note: attribute proc macros must have a signature of `fn(TokenStream, TokenStream) -> TokenStream`
15 error: mismatched attribute proc macro signature
16 --> $DIR/signature-proc-macro-attribute.rs:16:1
18 LL | pub fn bad_output(input: TokenStream) -> String {
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attribute proc macro must have two arguments of type `proc_macro::TokenStream`
21 error: mismatched attribute proc macro signature
22 --> $DIR/signature-proc-macro-attribute.rs:23:41
24 LL | pub fn bad_everything(input: String) -> String {
25 | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
27 = note: attribute proc macros must have a signature of `fn(TokenStream, TokenStream) -> TokenStream`
29 error: mismatched attribute proc macro signature
30 --> $DIR/signature-proc-macro-attribute.rs:23:1
32 LL | pub fn bad_everything(input: String) -> String {
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attribute proc macro must have two arguments of type `proc_macro::TokenStream`
35 error: mismatched attribute proc macro signature
36 --> $DIR/signature-proc-macro-attribute.rs:30:49
38 LL | pub fn too_many(a: TokenStream, b: TokenStream, c: String) -> TokenStream {
39 | ^^^^^^^^^ found unexpected argument
41 error: aborting due to 6 previous errors