]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/min_rust_version_attr.rs
Auto merge of #84620 - Dylan-DPC:rollup-wkv97im, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / min_rust_version_attr.rs
index 49ace1ca128c121c25e9f02664f63c29f5128ea9..7f9f7ddc53575ca57a21cc0840df551218571da1 100644 (file)
@@ -4,6 +4,10 @@
 
 use std::ops::{Deref, RangeFrom};
 
+fn cloned_instead_of_copied() {
+    let _ = [1].iter().cloned();
+}
+
 fn option_as_ref_deref() {
     let mut opt = Some(String::from("123"));