summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/signature-proc-macro.stderr
blob: dd2cb0570daa28d341d04288dbe73e14b8b87695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
error: function-like proc macro has incorrect signature
  --> $DIR/signature-proc-macro.rs:10:25
   |
LL | pub fn bad_input(input: String) -> TokenStream {
   |                         ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
   |
   = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
              found signature `fn(std::string::String) -> proc_macro::TokenStream`

error: function-like proc macro has incorrect signature
  --> $DIR/signature-proc-macro.rs:16:42
   |
LL | pub fn bad_output(input: TokenStream) -> String {
   |                                          ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
   |
   = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
              found signature `fn(proc_macro::TokenStream) -> std::string::String`

error: function-like proc macro has incorrect signature
  --> $DIR/signature-proc-macro.rs:22:30
   |
LL | pub fn bad_everything(input: String) -> String {
   |                              ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
   |
   = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
              found signature `fn(std::string::String) -> std::string::String`

error: function-like proc macro has incorrect signature
  --> $DIR/signature-proc-macro.rs:28:36
   |
LL | pub fn too_many(a: TokenStream, b: TokenStream, c: String) -> TokenStream {
   |                                    ^^^^^^^^^^^ incorrect number of function parameters
   |
   = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
              found signature `fn(proc_macro::TokenStream, proc_macro::TokenStream, std::string::String) -> proc_macro::TokenStream`

error: aborting due to 4 previous errors