mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
10 lines
217 B
Rust
10 lines
217 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: mismatched closing delimiter: `}`
|
|
|
|
fn foo(_: usize) {}
|