]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/drop_forget_copy.stderr
8eaf70c480cae2db3f80c8a7127ffd4cde1aa533
[rust.git] / clippy_tests / examples / drop_forget_copy.stderr
1 error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
2   --> drop_forget_copy.rs:33:5
3    |
4 33 |     drop(s1);
5    |     ^^^^^^^^
6    |
7    = note: `-D drop-copy` implied by `-D warnings`
8 note: argument has type SomeStruct
9   --> drop_forget_copy.rs:33:10
10    |
11 33 |     drop(s1);
12    |          ^^
13
14 error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
15   --> drop_forget_copy.rs:34:5
16    |
17 34 |     drop(s2);
18    |     ^^^^^^^^
19    |
20    = note: `-D drop-copy` implied by `-D warnings`
21 note: argument has type SomeStruct
22   --> drop_forget_copy.rs:34:10
23    |
24 34 |     drop(s2);
25    |          ^^
26
27 error: calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact.
28   --> drop_forget_copy.rs:36:5
29    |
30 36 |     drop(s4);
31    |     ^^^^^^^^
32    |
33    = note: `-D drop-copy` implied by `-D warnings`
34 note: argument has type SomeStruct
35   --> drop_forget_copy.rs:36:10
36    |
37 36 |     drop(s4);
38    |          ^^
39
40 error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
41   --> drop_forget_copy.rs:39:5
42    |
43 39 |     forget(s1);
44    |     ^^^^^^^^^^
45    |
46    = note: `-D forget-copy` implied by `-D warnings`
47 note: argument has type SomeStruct
48   --> drop_forget_copy.rs:39:12
49    |
50 39 |     forget(s1);
51    |            ^^
52
53 error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
54   --> drop_forget_copy.rs:40:5
55    |
56 40 |     forget(s2);
57    |     ^^^^^^^^^^
58    |
59    = note: `-D forget-copy` implied by `-D warnings`
60 note: argument has type SomeStruct
61   --> drop_forget_copy.rs:40:12
62    |
63 40 |     forget(s2);
64    |            ^^
65
66 error: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.
67   --> drop_forget_copy.rs:42:5
68    |
69 42 |     forget(s4);
70    |     ^^^^^^^^^^
71    |
72    = note: `-D forget-copy` implied by `-D warnings`
73 note: argument has type SomeStruct
74   --> drop_forget_copy.rs:42:12
75    |
76 42 |     forget(s4);
77    |            ^^
78
79 error: aborting due to previous error(s)
80
81 error: Could not compile `clippy_tests`.
82
83 To learn more, run the command again with --verbose.