2023-03-14 13:43:37 -05:00
|
|
|
error: function-like proc macro has incorrect signature
|
2023-03-14 14:05:15 -05:00
|
|
|
--> $DIR/signature-proc-macro.rs:10:25
|
2023-01-03 07:08:20 -06:00
|
|
|
|
|
|
|
|
LL | pub fn bad_input(input: String) -> TokenStream {
|
2023-03-14 14:05:15 -05:00
|
|
|
| ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
|
2023-01-03 07:08:20 -06:00
|
|
|
|
|
2023-03-14 13:43:37 -05:00
|
|
|
= note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
|
|
|
found signature `fn(std::string::String) -> proc_macro::TokenStream`
|
2023-01-03 07:08:20 -06:00
|
|
|
|
2023-03-14 13:43:37 -05:00
|
|
|
error: function-like proc macro has incorrect signature
|
2023-03-14 14:05:15 -05:00
|
|
|
--> $DIR/signature-proc-macro.rs:16:42
|
2023-01-03 07:08:20 -06:00
|
|
|
|
|
|
|
|
LL | pub fn bad_output(input: TokenStream) -> String {
|
2023-03-14 14:05:15 -05:00
|
|
|
| ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
|
2023-01-03 07:08:20 -06:00
|
|
|
|
|
2023-03-14 13:43:37 -05:00
|
|
|
= note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
|
|
|
found signature `fn(proc_macro::TokenStream) -> std::string::String`
|
2023-01-03 07:08:20 -06:00
|
|
|
|
2023-03-14 13:43:37 -05:00
|
|
|
error: function-like proc macro has incorrect signature
|
2023-03-14 14:05:15 -05:00
|
|
|
--> $DIR/signature-proc-macro.rs:22:30
|
2023-01-03 07:08:20 -06:00
|
|
|
|
|
|
|
|
LL | pub fn bad_everything(input: String) -> String {
|
2023-03-14 14:05:15 -05:00
|
|
|
| ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
|
2023-01-03 07:08:20 -06:00
|
|
|
|
|
2023-03-14 13:43:37 -05:00
|
|
|
= note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
|
|
|
found signature `fn(std::string::String) -> std::string::String`
|
2023-01-03 07:08:20 -06:00
|
|
|
|
2023-03-14 13:43:37 -05:00
|
|
|
error: function-like proc macro has incorrect signature
|
2023-03-14 14:05:15 -05:00
|
|
|
--> $DIR/signature-proc-macro.rs:28:36
|
2023-01-03 07:08:20 -06:00
|
|
|
|
|
|
|
|
LL | pub fn too_many(a: TokenStream, b: TokenStream, c: String) -> TokenStream {
|
2023-03-14 14:05:15 -05:00
|
|
|
| ^^^^^^^^^^^ incorrect number of function parameters
|
2023-03-14 13:43:37 -05:00
|
|
|
|
|
|
|
|
= 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`
|
2023-01-03 07:08:20 -06:00
|
|
|
|
2023-03-14 13:43:37 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2023-01-03 07:08:20 -06:00
|
|
|
|