15 lines
212 B
Rust
15 lines
212 B
Rust
// Test that we do some basic error correction in the tokeniser (and don't spew
|
|
// too many bogus errors).
|
|
|
|
fn foo() -> usize {
|
|
3
|
|
}
|
|
|
|
fn bar() {
|
|
foo() //~ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {
|
|
bar()
|
|
}
|