mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +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
81 B
Rust
6 lines
81 B
Rust
// run-rustfix
|
|
fn main() {
|
|
let _x = 42; //~ HELP
|
|
let _y = x; //~ ERROR
|
|
}
|