]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/nt-parsing-has-recovery.stderr
Auto merge of #96711 - emilio:inline-slice-clone, r=nikic
[rust.git] / src / test / ui / parser / nt-parsing-has-recovery.stderr
1 error: expected expression, found `@`
2   --> $DIR/nt-parsing-has-recovery.rs:5:10
3    |
4 LL |     ($e:expr) => {}
5    |      ------- while parsing argument for this `expr` macro fragment
6 ...
7 LL | foo!(1 + @);
8    |          ^ expected expression
9
10 error: expected expression, found `@`
11   --> $DIR/nt-parsing-has-recovery.rs:6:10
12    |
13 LL |     ($e:expr) => {}
14    |      ------- while parsing argument for this `expr` macro fragment
15 ...
16 LL | foo!(1 + @);
17    |          ^ expected expression
18
19 error[E0308]: mismatched types
20   --> $DIR/nt-parsing-has-recovery.rs:9:33
21    |
22 LL |     let _recovery_witness: () = 0;
23    |                            --   ^ expected `()`, found integer
24    |                            |
25    |                            expected due to this
26
27 error: aborting due to 3 previous errors
28
29 For more information about this error, try `rustc --explain E0308`.