rust/src/test/ui/resolve/token-error-correct-2.rs

8 lines
197 B
Rust
Raw Normal View History

2018-10-22 11:21:55 -05:00
// Test that we do some basic error correction in the tokeniser (and don't ICE).
2016-03-22 15:24:54 -05:00
fn main() {
if foo {
//~^ ERROR: cannot find value `foo`
2016-03-22 15:24:54 -05:00
) //~ ERROR: incorrect close delimiter: `)`
}