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