fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
705 B22 linesraw
1error[E0642]: patterns aren't allowed in methods without bodies
2  --> $DIR/no-patterns-in-args-macro.rs:20:8
3   |
4LL |     m!((bad, pat));
5   |        ^^^^^^^^^^
6
7error[E0561]: patterns aren't allowed in function pointer types
8  --> $DIR/no-patterns-in-args-macro.rs:20:8
9   |
10LL |     m!((bad, pat));
11   |        ^^^^^^^^^^
12
13error[E0130]: patterns aren't allowed in foreign function declarations
14  --> $DIR/no-patterns-in-args-macro.rs:20:8
15   |
16LL |     m!((bad, pat));
17   |        ^^^^^^^^^^ pattern not allowed in foreign function
18
19error: aborting due to 3 previous errors
20
21Some errors have detailed explanations: E0130, E0561, E0642.
22For more information about an error, try `rustc --explain E0130`.