mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
b0d17f35d9
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
|
|
}
|