summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/mem_replace_macro.stderr
blob: dd69ab8b5efb80bc8069b3c0590830079cdea50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
  --> $DIR/mem_replace_macro.rs:9:9
   |
LL |         std::mem::replace($s, Default::default())
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL |     take!(s);
   |     -------- in this macro invocation
   |
   = note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
   = note: this error originates in the macro `take` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error