rust/src/test/ui/span/typo-suggestion.stderr
Andy Russell 404ad50d14
clarify resolve typo suggestion
Include the kind of the binding that we're suggesting, and use a
structured suggestion.
2019-01-09 14:11:00 -05:00

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`.