rust/tests/ui/span/typo-suggestion.rs

10 lines
254 B
Rust
Raw Normal View History

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
// But this is close enough.
2017-11-20 06:13:27 -06:00
println!("Hello {}", fob); //~ ERROR cannot find value
}