2020-02-01 11:28:27 +00:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:10:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::drop-ref` implied by `-D warnings`
|
|
|
|
note: argument has type `&SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:10:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:13:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&owned1);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:13:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&owned1);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:14:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&&owned1);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&&SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:14:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&&owned1);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:15:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&mut owned1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&mut SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:15:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&mut owned1);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:19:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(reference1);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:19:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(reference1);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:22:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(reference2);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&mut SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:22:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(reference2);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:25:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(reference3);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:25:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(reference3);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:30:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&val);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&T`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:30:10
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | drop(&val);
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:38:5
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | std::mem::drop(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type `&SomeStruct`
|
2020-09-01 20:59:37 +00:00
|
|
|
--> $DIR/drop_ref.rs:38:20
|
2020-02-01 11:28:27 +00:00
|
|
|
|
|
|
|
|
LL | std::mem::drop(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|