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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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