2019-12-24 15:59:35 +00:00
|
|
|
error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
|
2023-03-07 14:40:55 +00:00
|
|
|
--> $DIR/mem_replace_macro.rs:10:13
|
2019-12-24 15:59:35 +00:00
|
|
|
|
|
2023-03-07 14:40:55 +00:00
|
|
|
LL | inline!(std::mem::replace($s, Default::default()));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-12-24 15:59:35 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
|
2023-03-07 14:40:55 +00:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-12-24 15:59:35 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|