2015-06-07 19:56:18 -05:00
|
|
|
fn main() {
|
|
|
|
let foo = 1;
|
|
|
|
|
|
|
|
// `foo` shouldn't be suggested, it is too dissimilar from `bar`.
|
2017-11-20 06:13:27 -06:00
|
|
|
println!("Hello {}", bar); //~ ERROR cannot find value
|
2015-06-07 19:56:18 -05:00
|
|
|
|
|
|
|
// But this is close enough.
|
2017-11-20 06:13:27 -06:00
|
|
|
println!("Hello {}", fob); //~ ERROR cannot find value
|
2015-06-07 19:56:18 -05:00
|
|
|
}
|