mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
![Esteban Küber](/assets/img/avatar_default.png)
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.
6 lines
80 B
Rust
6 lines
80 B
Rust
// run-rustfix
|
|
fn main() {
|
|
let x = 42; //~ HELP
|
|
let _y = x; //~ ERROR
|
|
}
|