]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/typo-suggestion.rs
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[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 }