blob: e9d7bc65ef5b55c4ce4ab74c269bc7bfd4bf8027 (
plain)
1
2
3
4
5
6
7
8
9
|
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
}
|