]> git.proxmox.com Git - rustc.git/blob - tests/ui/proc-macro/signature-proc-macro-attribute.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / proc-macro / signature-proc-macro-attribute.stderr
1 error: mismatched attribute proc macro signature
2 --> $DIR/signature-proc-macro-attribute.rs:10:1
3 |
4 LL | pub fn bad_input(input: String) -> TokenStream {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attribute proc macro must have two arguments of type `proc_macro::TokenStream`
6
7 error: mismatched attribute proc macro signature
8 --> $DIR/signature-proc-macro-attribute.rs:16:42
9 |
10 LL | pub fn bad_output(input: TokenStream) -> String {
11 | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
12 |
13 = note: attribute proc macros must have a signature of `fn(TokenStream, TokenStream) -> TokenStream`
14
15 error: mismatched attribute proc macro signature
16 --> $DIR/signature-proc-macro-attribute.rs:16:1
17 |
18 LL | pub fn bad_output(input: TokenStream) -> String {
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attribute proc macro must have two arguments of type `proc_macro::TokenStream`
20
21 error: mismatched attribute proc macro signature
22 --> $DIR/signature-proc-macro-attribute.rs:23:41
23 |
24 LL | pub fn bad_everything(input: String) -> String {
25 | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
26 |
27 = note: attribute proc macros must have a signature of `fn(TokenStream, TokenStream) -> TokenStream`
28
29 error: mismatched attribute proc macro signature
30 --> $DIR/signature-proc-macro-attribute.rs:23:1
31 |
32 LL | pub fn bad_everything(input: String) -> String {
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attribute proc macro must have two arguments of type `proc_macro::TokenStream`
34
35 error: mismatched attribute proc macro signature
36 --> $DIR/signature-proc-macro-attribute.rs:30:49
37 |
38 LL | pub fn too_many(a: TokenStream, b: TokenStream, c: String) -> TokenStream {
39 | ^^^^^^^^^ found unexpected argument
40
41 error: aborting due to 6 previous errors
42