summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/nt-parsing-has-recovery.rs
blob: ccbeb398af5baee5f87050f40c4dd01758b2c2c8 (plain)
1
2
3
4
5
6
7
8
9
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
}