summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/token-error-correct-2.rs
blob: f7c7d908c784f1cc8321f081c6ccb27c8e856885 (plain)
1
2
3
4
5
6
7
// Test that we do some basic error correction in the tokeniser (and don't ICE).

fn main() {
    if foo {
    //~^ ERROR: cannot find value `foo`
    ) //~ ERROR: mismatched closing delimiter: `)`
}