diff options
Diffstat (limited to 'tests/ui/parser/nt-parsing-has-recovery.rs')
-rw-r--r-- | tests/ui/parser/nt-parsing-has-recovery.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/nt-parsing-has-recovery.rs b/tests/ui/parser/nt-parsing-has-recovery.rs new file mode 100644 index 000000000..ccbeb398a --- /dev/null +++ b/tests/ui/parser/nt-parsing-has-recovery.rs @@ -0,0 +1,10 @@ +macro_rules! foo { + ($e:expr) => {} +} + +foo!(1 + @); //~ ERROR expected expression, found `@` +foo!(1 + @); //~ ERROR expected expression, found `@` + +fn main() { + let _recovery_witness: () = 0; //~ ERROR mismatched types +} |