fork/rust

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

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

1.44.0
869 B29 linesraw
1error: expected expression, found `@`
2  --> $DIR/nt-parsing-has-recovery.rs:5:10
3   |
4LL |     ($e:expr) => {}
5   |      ------- while parsing argument for this `expr` macro fragment
6...
7LL | foo!(1 + @);
8   |          ^ expected expression
9
10error: expected expression, found `@`
11  --> $DIR/nt-parsing-has-recovery.rs:6:10
12   |
13LL |     ($e:expr) => {}
14   |      ------- while parsing argument for this `expr` macro fragment
15...
16LL | foo!(1 + @);
17   |          ^ expected expression
18
19error[E0308]: mismatched types
20  --> $DIR/nt-parsing-has-recovery.rs:9:33
21   |
22LL |     let _recovery_witness: () = 0;
23   |                            --   ^ expected `()`, found integer
24   |                            |
25   |                            expected due to this
26
27error: aborting due to 3 previous errors
28
29For more information about this error, try `rustc --explain E0308`.