]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/drop_forget_copy.stderr
New upstream version 1.25.0+dfsg1
[rustc.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 33 | drop(s1);
5 | ^^^^^^^^
6 |
7 = note: `-D drop-copy` implied by `-D warnings`
8 note: argument has type SomeStruct
9 --> $DIR/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 --> $DIR/drop_forget_copy.rs:34:5
16 |
17 34 | drop(s2);
18 | ^^^^^^^^
19 |
20 note: argument has type SomeStruct
21 --> $DIR/drop_forget_copy.rs:34:10
22 |
23 34 | 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 36 | drop(s4);
30 | ^^^^^^^^
31 |
32 note: argument has type SomeStruct
33 --> $DIR/drop_forget_copy.rs:36:10
34 |
35 36 | 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 39 | forget(s1);
42 | ^^^^^^^^^^
43 |
44 = note: `-D forget-copy` implied by `-D warnings`
45 note: argument has type SomeStruct
46 --> $DIR/drop_forget_copy.rs:39:12
47 |
48 39 | 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 40 | forget(s2);
55 | ^^^^^^^^^^
56 |
57 note: argument has type SomeStruct
58 --> $DIR/drop_forget_copy.rs:40:12
59 |
60 40 | 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 42 | forget(s4);
67 | ^^^^^^^^^^
68 |
69 note: argument has type SomeStruct
70 --> $DIR/drop_forget_copy.rs:42:12
71 |
72 42 | forget(s4);
73 | ^^
74
75 error: aborting due to 6 previous errors
76