1 error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
2 --> $DIR/drop_forget_copy.rs:33:5
7 note: argument has type `SomeStruct`
8 --> $DIR/drop_forget_copy.rs:33:10
12 = note: `-D clippy::drop-copy` implied by `-D warnings`
14 error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
15 --> $DIR/drop_forget_copy.rs:34:5
20 note: argument has type `SomeStruct`
21 --> $DIR/drop_forget_copy.rs:34:10
26 error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
27 --> $DIR/drop_forget_copy.rs:36:5
32 note: argument has type `SomeStruct`
33 --> $DIR/drop_forget_copy.rs:36:10
38 error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
39 --> $DIR/drop_forget_copy.rs:39:5
44 note: argument has type `SomeStruct`
45 --> $DIR/drop_forget_copy.rs:39:12
49 = note: `-D clippy::forget-copy` implied by `-D warnings`
51 error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
52 --> $DIR/drop_forget_copy.rs:40:5
57 note: argument has type `SomeStruct`
58 --> $DIR/drop_forget_copy.rs:40:12
63 error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
64 --> $DIR/drop_forget_copy.rs:42:5
69 note: argument has type `SomeStruct`
70 --> $DIR/drop_forget_copy.rs:42:12
75 error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
76 --> $DIR/drop_forget_copy.rs:80:13
78 LL | drop(println_and(13)); // Lint, even if we only care about the side-effect, it's already in a block
79 | ^^^^^^^^^^^^^^^^^^^^^
81 note: argument has type `i32`
82 --> $DIR/drop_forget_copy.rs:80:18
84 LL | drop(println_and(13)); // Lint, even if we only care about the side-effect, it's already in a block
87 error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
88 --> $DIR/drop_forget_copy.rs:82:14
90 LL | 3 if drop(println_and(14)) == () => (), // Lint, idiomatic use is only in body of `Arm`
91 | ^^^^^^^^^^^^^^^^^^^^^
93 note: argument has type `i32`
94 --> $DIR/drop_forget_copy.rs:82:19
96 LL | 3 if drop(println_and(14)) == () => (), // Lint, idiomatic use is only in body of `Arm`
99 error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
100 --> $DIR/drop_forget_copy.rs:83:14
102 LL | 4 => drop(2), // Lint, not a fn/method call
105 note: argument has type `i32`
106 --> $DIR/drop_forget_copy.rs:83:19
108 LL | 4 => drop(2), // Lint, not a fn/method call
111 error: aborting due to 9 previous errors