]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/drop_forget_copy.stderr
Auto merge of #6787 - matthiaskrgr:lint_msgs, r=llogiq
[rust.git] / tests / ui / drop_forget_copy.stderr
index 3b950eaebe38a598585a4681b7ed0cd4835731ae..01de0be7caea96cb907223cb49ddce57233d6eef 100644 (file)
@@ -1,75 +1,75 @@
-error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
-  --> $DIR/drop_forget_copy.rs:42:5
+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
    |
-42 |     drop(s1);
+LL |     drop(s1);
    |     ^^^^^^^^
    |
    = note: `-D clippy::drop-copy` implied by `-D warnings`
 note: argument has type SomeStruct
-  --> $DIR/drop_forget_copy.rs:42:10
+  --> $DIR/drop_forget_copy.rs:33:10
    |
-42 |     drop(s1);
+LL |     drop(s1);
    |          ^^
 
-error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
-  --> $DIR/drop_forget_copy.rs:43:5
+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
    |
-43 |     drop(s2);
+LL |     drop(s2);
    |     ^^^^^^^^
    |
 note: argument has type SomeStruct
-  --> $DIR/drop_forget_copy.rs:43:10
+  --> $DIR/drop_forget_copy.rs:34:10
    |
-43 |     drop(s2);
+LL |     drop(s2);
    |          ^^
 
-error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
-  --> $DIR/drop_forget_copy.rs:45:5
+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
    |
-45 |     drop(s4);
+LL |     drop(s4);
    |     ^^^^^^^^
    |
 note: argument has type SomeStruct
-  --> $DIR/drop_forget_copy.rs:45:10
+  --> $DIR/drop_forget_copy.rs:36:10
    |
-45 |     drop(s4);
+LL |     drop(s4);
    |          ^^
 
-error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
-  --> $DIR/drop_forget_copy.rs:48:5
+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
    |
-48 |     forget(s1);
+LL |     forget(s1);
    |     ^^^^^^^^^^
    |
    = note: `-D clippy::forget-copy` implied by `-D warnings`
 note: argument has type SomeStruct
-  --> $DIR/drop_forget_copy.rs:48:12
+  --> $DIR/drop_forget_copy.rs:39:12
    |
-48 |     forget(s1);
+LL |     forget(s1);
    |            ^^
 
-error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
-  --> $DIR/drop_forget_copy.rs:49:5
+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
    |
-49 |     forget(s2);
+LL |     forget(s2);
    |     ^^^^^^^^^^
    |
 note: argument has type SomeStruct
-  --> $DIR/drop_forget_copy.rs:49:12
+  --> $DIR/drop_forget_copy.rs:40:12
    |
-49 |     forget(s2);
+LL |     forget(s2);
    |            ^^
 
-error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
-  --> $DIR/drop_forget_copy.rs:51:5
+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
    |
-51 |     forget(s4);
+LL |     forget(s4);
    |     ^^^^^^^^^^
    |
 note: argument has type SomeStruct
-  --> $DIR/drop_forget_copy.rs:51:12
+  --> $DIR/drop_forget_copy.rs:42:12
    |
-51 |     forget(s4);
+LL |     forget(s4);
    |            ^^
 
 error: aborting due to 6 previous errors