rust/tests/ui/drop_forget_copy.stderr

77 lines
2.0 KiB
Plaintext
Raw Normal View History

error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:43:5
|
2018-10-06 18:18:06 +02:00
43 | drop(s1);
| ^^^^^^^^
|
= note: `-D clippy::drop-copy` implied by `-D warnings`
note: argument has type SomeStruct
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:43:10
|
2018-10-06 18:18:06 +02:00
43 | drop(s1);
| ^^
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:44:5
|
2018-10-06 18:18:06 +02:00
44 | drop(s2);
| ^^^^^^^^
|
note: argument has type SomeStruct
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:44:10
|
2018-10-06 18:18:06 +02:00
44 | drop(s2);
| ^^
error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:46:5
|
2018-10-06 18:18:06 +02:00
46 | drop(s4);
| ^^^^^^^^
|
note: argument has type SomeStruct
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:46:10
|
2018-10-06 18:18:06 +02:00
46 | drop(s4);
| ^^
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:49:5
|
2018-10-06 18:18:06 +02:00
49 | forget(s1);
| ^^^^^^^^^^
|
= note: `-D clippy::forget-copy` implied by `-D warnings`
note: argument has type SomeStruct
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:49:12
|
2018-10-06 18:18:06 +02:00
49 | forget(s1);
| ^^
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:50:5
|
2018-10-06 18:18:06 +02:00
50 | forget(s2);
| ^^^^^^^^^^
|
note: argument has type SomeStruct
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:50:12
|
2018-10-06 18:18:06 +02:00
50 | forget(s2);
| ^^
error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:52:5
|
2018-10-06 18:18:06 +02:00
52 | forget(s4);
| ^^^^^^^^^^
|
note: argument has type SomeStruct
2018-10-06 18:18:06 +02:00
--> $DIR/drop_forget_copy.rs:52:12
|
2018-10-06 18:18:06 +02:00
52 | forget(s4);
| ^^
2018-01-16 17:06:27 +01:00
error: aborting due to 6 previous errors