]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/repl_uninit.stderr
Auto merge of #70655 - oli-obk:subrepo_funness, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / repl_uninit.stderr
1 error: replacing with `mem::uninitialized()`
2   --> $DIR/repl_uninit.rs:15:23
3    |
4 LL |         let taken_v = mem::replace(&mut v, mem::uninitialized());
5    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::mem-replace-with-uninit` implied by `-D warnings`
8    = help: consider using the `take_mut` crate instead
9
10 error: replacing with `mem::zeroed()`
11   --> $DIR/repl_uninit.rs:21:23
12    |
13 LL |         let taken_v = mem::replace(&mut v, mem::zeroed());
14    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider using a default value or the `take_mut` crate instead
17
18 error: replacing with `mem::uninitialized()`
19   --> $DIR/repl_uninit.rs:33:28
20    |
21 LL |     let taken_u = unsafe { mem::replace(uref, mem::uninitialized()) };
22    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = help: consider using the `take_mut` crate instead
25
26 error: aborting due to 3 previous errors
27