fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
672 B22 linesraw
1error: macro expansion ignores token `2` and any following
2  --> $DIR/trait-non-item-macros.rs:3:9
3   |
4LL |         $a
5   |         ^^
6...
7LL |     bah!(2);
8   |     -------- caused by the macro expansion here
9   |
10   = note: the usage of `bah!` is likely invalid in trait item context
11
12error[E0308]: mismatched types
13  --> $DIR/trait-non-item-macros.rs:12:33
14   |
15LL |     let _recovery_witness: () = 0;
16   |                            --   ^ expected `()`, found integer
17   |                            |
18   |                            expected due to this
19
20error: aborting due to 2 previous errors
21
22For more information about this error, try `rustc --explain E0308`.