rust-clippy/tests/ui/drop_forget_copy.stderr

77 lines
2 KiB
Text
Raw Normal View History

2020-01-06 06:36:33 +00:00
error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact.
--> $DIR/drop_forget_copy.rs:33:5
|
2018-12-27 15:57:55 +00:00
LL | drop(s1);
| ^^^^^^^^
|
= note: `-D clippy::drop-copy` implied by `-D warnings`
note: argument has type SomeStruct
--> $DIR/drop_forget_copy.rs:33:10
|
2018-12-27 15:57:55 +00:00
LL | drop(s1);
| ^^
2020-01-06 06:36:33 +00:00
error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact.
--> $DIR/drop_forget_copy.rs:34:5
|
2018-12-27 15:57:55 +00:00
LL | drop(s2);
| ^^^^^^^^
|
note: argument has type SomeStruct
--> $DIR/drop_forget_copy.rs:34:10
|
2018-12-27 15:57:55 +00:00
LL | drop(s2);
| ^^
2020-01-06 06:36:33 +00:00
error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact.
--> $DIR/drop_forget_copy.rs:36:5
|
2018-12-27 15:57:55 +00:00
LL | drop(s4);
| ^^^^^^^^
|
note: argument has type SomeStruct
--> $DIR/drop_forget_copy.rs:36:10
|
2018-12-27 15:57:55 +00:00
LL | drop(s4);
| ^^
2020-01-06 06:36:33 +00:00
error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact.
--> $DIR/drop_forget_copy.rs:39:5
|
2018-12-27 15:57:55 +00:00
LL | forget(s1);
| ^^^^^^^^^^
|
= note: `-D clippy::forget-copy` implied by `-D warnings`
note: argument has type SomeStruct
--> $DIR/drop_forget_copy.rs:39:12
|
2018-12-27 15:57:55 +00:00
LL | forget(s1);
| ^^
2020-01-06 06:36:33 +00:00
error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact.
--> $DIR/drop_forget_copy.rs:40:5
|
2018-12-27 15:57:55 +00:00
LL | forget(s2);
| ^^^^^^^^^^
|
note: argument has type SomeStruct
--> $DIR/drop_forget_copy.rs:40:12
|
2018-12-27 15:57:55 +00:00
LL | forget(s2);
| ^^
2020-01-06 06:36:33 +00:00
error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact.
--> $DIR/drop_forget_copy.rs:42:5
|
2018-12-27 15:57:55 +00:00
LL | forget(s4);
| ^^^^^^^^^^
|
note: argument has type SomeStruct
--> $DIR/drop_forget_copy.rs:42:12
|
2018-12-27 15:57:55 +00:00
LL | forget(s4);
| ^^
2018-01-16 16:06:27 +00:00
error: aborting due to 6 previous errors