The help text emitted for the following suggests code that is invalid.
fn main() {
let ref mut x @ v;
*x = 1;
}
error[E0381]: used binding `x` isn't initialized
--> src/main.rs:3:5
|
2 | let ref mut x @ v;
| --------- binding declared here but left uninitialized
3 | *x = 1;
| ^^^^^^ `x` used here but it isn't initialized
|
help: consider assigning a value
|
2 | let ref mut x = &mut 42 @ v;
| +++++++++
The help text emitted for the following suggests code that is invalid.