]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/typo-suggestion.rs
New upstream version 1.66.0+dfsg1
[rustc.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 }