]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/typo-suggestion.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / typo-suggestion.rs
1 fn main() {
2     let foo = 1;
3
4     // `foo` shouldn't be suggested, it is too dissimilar from `bar`.
5     println!("Hello {}", bar); //~ ERROR cannot find value
6
7     // But this is close enough.
8     println!("Hello {}", fob); //~ ERROR cannot find value
9 }