404ad50d14
Include the kind of the binding that we're suggesting, and use a structured suggestion.
16 lines
573 B
Plaintext
16 lines
573 B
Plaintext
error[E0425]: cannot find value `bar` in this scope
|
|
--> $DIR/typo-suggestion.rs:5:26
|
|
|
|
|
LL | println!("Hello {}", bar); //~ ERROR cannot find value
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0425]: cannot find value `fob` in this scope
|
|
--> $DIR/typo-suggestion.rs:8:26
|
|
|
|
|
LL | println!("Hello {}", fob); //~ ERROR cannot find value
|
|
| ^^^ help: a local variable with a similar name exists: `foo`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|