mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-24 22:44:26 +00:00
10 lines
254 B
Rust
10 lines
254 B
Rust
fn main() {
|
|
let foo = 1;
|
|
|
|
// `foo` shouldn't be suggested, it is too dissimilar from `bar`.
|
|
println!("Hello {}", bar); //~ ERROR cannot find value
|
|
|
|
// But this is close enough.
|
|
println!("Hello {}", fob); //~ ERROR cannot find value
|
|
}
|