fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.9 KiB38 linesraw
1error: attribute proc macro has incorrect signature
2  --> $DIR/signature-proc-macro-attribute.rs:10:1
3   |
4LL | pub fn bad_input(input: String) -> TokenStream {
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of function parameters
6   |
7   = note: expected signature `fn(proc_macro::TokenStream, proc_macro::TokenStream) -> proc_macro::TokenStream`
8              found signature `fn(std::string::String) -> proc_macro::TokenStream`
9
10error: attribute proc macro has incorrect signature
11  --> $DIR/signature-proc-macro-attribute.rs:16:1
12   |
13LL | pub fn bad_output(input: TokenStream) -> String {
14   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of function parameters
15   |
16   = note: expected signature `fn(proc_macro::TokenStream, proc_macro::TokenStream) -> proc_macro::TokenStream`
17              found signature `fn(proc_macro::TokenStream) -> std::string::String`
18
19error: attribute proc macro has incorrect signature
20  --> $DIR/signature-proc-macro-attribute.rs:22:1
21   |
22LL | pub fn bad_everything(input: String) -> String {
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of function parameters
24   |
25   = note: expected signature `fn(proc_macro::TokenStream, proc_macro::TokenStream) -> proc_macro::TokenStream`
26              found signature `fn(std::string::String) -> std::string::String`
27
28error: attribute proc macro has incorrect signature
29  --> $DIR/signature-proc-macro-attribute.rs:28:52
30   |
31LL | pub fn too_many(a: TokenStream, b: TokenStream, c: String) -> TokenStream {
32   |                                                    ^^^^^^ incorrect number of function parameters
33   |
34   = note: expected signature `fn(proc_macro::TokenStream, proc_macro::TokenStream) -> proc_macro::TokenStream`
35              found signature `fn(proc_macro::TokenStream, proc_macro::TokenStream, std::string::String) -> proc_macro::TokenStream`
36
37error: aborting due to 4 previous errors
38