rust/tests/ui/span/typo-suggestion.rs
2023-01-11 09:32:08 +00:00

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
}