1 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
2 --> $DIR/map_clone.rs:12:5
4 12 | x.iter().map(|y| y.clone());
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: lint level defined here
8 --> $DIR/map_clone.rs:4:9
10 4 | #![deny(map_clone)]
15 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
16 --> $DIR/map_clone.rs:14:5
18 14 | x.iter().map(|&y| y);
19 | ^^^^^^^^^^^^^^^^^^^^
24 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
25 --> $DIR/map_clone.rs:16:5
27 16 | x.iter().map(|y| *y);
28 | ^^^^^^^^^^^^^^^^^^^^
33 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
34 --> $DIR/map_clone.rs:18:5
36 18 | x.iter().map(|y| { y.clone() });
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
43 --> $DIR/map_clone.rs:20:5
45 20 | x.iter().map(|&y| { y });
46 | ^^^^^^^^^^^^^^^^^^^^^^^^
51 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
52 --> $DIR/map_clone.rs:22:5
54 22 | x.iter().map(|y| { *y });
55 | ^^^^^^^^^^^^^^^^^^^^^^^^
60 error: you seem to be using .map() to clone the contents of an iterator, consider using `.cloned()`
61 --> $DIR/map_clone.rs:24:5
63 24 | x.iter().map(Clone::clone);
64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
69 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
70 --> $DIR/map_clone.rs:30:5
72 30 | x.as_ref().map(|y| y.clone());
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
79 --> $DIR/map_clone.rs:32:5
81 32 | x.as_ref().map(|&y| y);
82 | ^^^^^^^^^^^^^^^^^^^^^^
87 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
88 --> $DIR/map_clone.rs:34:5
90 34 | x.as_ref().map(|y| *y);
91 | ^^^^^^^^^^^^^^^^^^^^^^
96 error: you seem to be using .map() to clone the contents of an Option, consider using `.cloned()`
97 --> $DIR/map_clone.rs:90:35
99 90 | let _: Option<UnusualDeref> = x.as_ref().map(|y| *y);
100 | ^^^^^^^^^^^^^^^^^^^^^^
105 error: aborting due to 11 previous errors