1 error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
2 --> $DIR/mem_replace_macro.rs:9:9
4 LL | std::mem::replace($s, Default::default())
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 | -------- in this macro invocation
10 = note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
11 = note: this error originates in the macro `take` (in Nightly builds, run with -Z macro-backtrace for more info)
13 error: aborting due to previous error