]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/move-of-addr-of-mut.stderr
fn-trait-closure test now pass on new solver
[rust.git] / tests / ui / moves / move-of-addr-of-mut.stderr
1 error[E0381]: used binding `x` isn't initialized
2   --> $DIR/move-of-addr-of-mut.rs:8:5
3    |
4 LL |     let mut x: S;
5    |         ----- binding declared here but left uninitialized
6 LL |     std::ptr::addr_of_mut!(x);
7    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ `x` used here but it isn't initialized
8    |
9    = note: this error originates in the macro `std::ptr::addr_of_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
10 help: consider assigning a value
11    |
12 LL |     let mut x: S = todo!();
13    |                  +++++++++
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0381`.