When encountering a binding that isn't found but has a typo suggestion for a binding with a leading underscore, suggest changing the binding definition instead of the use place. Fix #60164.
5 lines
80 B
Rust
5 lines
80 B
Rust
// run-rustfix
|
|
fn main() {
|
|
let x = 42; //~ HELP
|
|
let _y = x; //~ ERROR
|
|
}
|