]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/typo-suggestion.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / 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 }