]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/drop_forget_copy.stderr
:arrow_up: rust-analyzer
[rust.git] / src / tools / clippy / tests / ui / 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   --> $DIR/drop_forget_copy.rs:33:5
3    |
4 LL |     drop(s1);
5    |     ^^^^^^^^
6    |
7    = note: `-D clippy::drop-copy` implied by `-D warnings`
8 note: argument has type `SomeStruct`
9   --> $DIR/drop_forget_copy.rs:33:10
10    |
11 LL |     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   --> $DIR/drop_forget_copy.rs:34:5
16    |
17 LL |     drop(s2);
18    |     ^^^^^^^^
19    |
20 note: argument has type `SomeStruct`
21   --> $DIR/drop_forget_copy.rs:34:10
22    |
23 LL |     drop(s2);
24    |          ^^
25
26 error: calls to `std::mem::drop` with a value that implements `Copy`. Dropping a copy leaves the original intact
27   --> $DIR/drop_forget_copy.rs:36:5
28    |
29 LL |     drop(s4);
30    |     ^^^^^^^^
31    |
32 note: argument has type `SomeStruct`
33   --> $DIR/drop_forget_copy.rs:36:10
34    |
35 LL |     drop(s4);
36    |          ^^
37
38 error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
39   --> $DIR/drop_forget_copy.rs:39:5
40    |
41 LL |     forget(s1);
42    |     ^^^^^^^^^^
43    |
44    = note: `-D clippy::forget-copy` implied by `-D warnings`
45 note: argument has type `SomeStruct`
46   --> $DIR/drop_forget_copy.rs:39:12
47    |
48 LL |     forget(s1);
49    |            ^^
50
51 error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
52   --> $DIR/drop_forget_copy.rs:40:5
53    |
54 LL |     forget(s2);
55    |     ^^^^^^^^^^
56    |
57 note: argument has type `SomeStruct`
58   --> $DIR/drop_forget_copy.rs:40:12
59    |
60 LL |     forget(s2);
61    |            ^^
62
63 error: calls to `std::mem::forget` with a value that implements `Copy`. Forgetting a copy leaves the original intact
64   --> $DIR/drop_forget_copy.rs:42:5
65    |
66 LL |     forget(s4);
67    |     ^^^^^^^^^^
68    |
69 note: argument has type `SomeStruct`
70   --> $DIR/drop_forget_copy.rs:42:12
71    |
72 LL |     forget(s4);
73    |            ^^
74
75 error: aborting due to 6 previous errors
76