]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/mem_replace_macro.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / mem_replace_macro.stderr
CommitLineData
f20569fa
XL
1error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
2 --> $DIR/mem_replace_macro.rs:9:9
3 |
4LL | std::mem::replace($s, Default::default())
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6...
7LL | take!(s);
8 | --------- in this macro invocation
9 |
10 = note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
11 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
12
13error: aborting due to previous error
14