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