rust/src/test/ui/resolve/token-error-correct.rs
2019-02-07 01:42:54 -08:00

10 lines
214 B
Rust

// Test that we do some basic error correction in the tokeniser.
fn main() {
foo(bar(;
//~^ ERROR cannot find function `bar` in this scope
}
//~^ ERROR: incorrect close delimiter: `}`
fn foo(_: usize) {}