about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/mem_replace_macro.stderr
blob: 0c98200bf04e598296b598f3fd7a810520f89fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
  --> tests/ui/mem_replace_macro.rs:10:21
   |
LL |     let _ = inline!(std::mem::replace($s, Default::default()));
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::mem_replace_with_default)]`
   = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 1 previous error