1 error: call 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: lint level defined here
8 --> $DIR/drop_forget_copy.rs:4:9
10 4 | #![deny(drop_copy, forget_copy)]
12 note: argument has type SomeStruct
13 --> $DIR/drop_forget_copy.rs:33:10
18 error: call to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
19 --> $DIR/drop_forget_copy.rs:34:5
24 note: argument has type SomeStruct
25 --> $DIR/drop_forget_copy.rs:34:10
30 error: call to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
31 --> $DIR/drop_forget_copy.rs:35:5
36 note: argument has type &SomeStruct
37 --> $DIR/drop_forget_copy.rs:35:10
42 error: call to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
43 --> $DIR/drop_forget_copy.rs:36:5
48 note: argument has type SomeStruct
49 --> $DIR/drop_forget_copy.rs:36:10
54 error: call to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
55 --> $DIR/drop_forget_copy.rs:37:5
60 note: argument has type &SomeStruct
61 --> $DIR/drop_forget_copy.rs:37:10
66 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
67 --> $DIR/drop_forget_copy.rs:39:5
72 note: lint level defined here
73 --> $DIR/drop_forget_copy.rs:4:20
75 4 | #![deny(drop_copy, forget_copy)]
77 note: argument has type SomeStruct
78 --> $DIR/drop_forget_copy.rs:39:12
83 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
84 --> $DIR/drop_forget_copy.rs:40:5
89 note: argument has type SomeStruct
90 --> $DIR/drop_forget_copy.rs:40:12
95 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
96 --> $DIR/drop_forget_copy.rs:41:5
101 note: argument has type &SomeStruct
102 --> $DIR/drop_forget_copy.rs:41:12
107 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
108 --> $DIR/drop_forget_copy.rs:42:5
113 note: argument has type SomeStruct
114 --> $DIR/drop_forget_copy.rs:42:12
119 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
120 --> $DIR/drop_forget_copy.rs:43:5
125 note: argument has type &SomeStruct
126 --> $DIR/drop_forget_copy.rs:43:12
131 error: call to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
132 --> $DIR/drop_forget_copy.rs:51:5
137 note: argument has type &AnotherStruct
138 --> $DIR/drop_forget_copy.rs:51:10
143 error: call to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
144 --> $DIR/drop_forget_copy.rs:53:5
149 note: argument has type &AnotherStruct
150 --> $DIR/drop_forget_copy.rs:53:10
155 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
156 --> $DIR/drop_forget_copy.rs:56:5
161 note: argument has type &AnotherStruct
162 --> $DIR/drop_forget_copy.rs:56:12
167 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
168 --> $DIR/drop_forget_copy.rs:58:5
173 note: argument has type &AnotherStruct
174 --> $DIR/drop_forget_copy.rs:58:12
179 error: call to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
180 --> $DIR/drop_forget_copy.rs:59:5
185 note: argument has type &AnotherStruct
186 --> $DIR/drop_forget_copy.rs:59:12
191 error: aborting due to 15 previous errors