mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +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
|
|
}
|