2022-01-14 16:45:05 -06:00
|
|
|
error: you are using an explicit closure for copying elements
|
2022-01-14 17:39:06 -06:00
|
|
|
--> $DIR/min_rust_version.rs:74:26
|
2022-01-14 16:45:05 -06:00
|
|
|
|
|
|
|
|
LL | let _: Option<u64> = Some(&16).map(|b| *b);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `cloned` method: `Some(&16).cloned()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::map-clone` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|