]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
ea8adc8c
XL
1error: 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 |
433 | drop(s1);
5 | ^^^^^^^^
6 |
7 = note: `-D drop-copy` implied by `-D warnings`
8note: argument has type SomeStruct
9 --> $DIR/drop_forget_copy.rs:33:10
10 |
1133 | drop(s1);
12 | ^^
13
14error: 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 |
1734 | drop(s2);
18 | ^^^^^^^^
19 |
20note: argument has type SomeStruct
21 --> $DIR/drop_forget_copy.rs:34:10
22 |
2334 | drop(s2);
24 | ^^
25
26error: 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 |
2936 | drop(s4);
30 | ^^^^^^^^
31 |
32note: argument has type SomeStruct
33 --> $DIR/drop_forget_copy.rs:36:10
34 |
3536 | drop(s4);
36 | ^^
37
38error: 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 |
4139 | forget(s1);
42 | ^^^^^^^^^^
43 |
44 = note: `-D forget-copy` implied by `-D warnings`
45note: argument has type SomeStruct
46 --> $DIR/drop_forget_copy.rs:39:12
47 |
4839 | forget(s1);
49 | ^^
50
51error: 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 |
5440 | forget(s2);
55 | ^^^^^^^^^^
56 |
57note: argument has type SomeStruct
58 --> $DIR/drop_forget_copy.rs:40:12
59 |
6040 | forget(s2);
61 | ^^
62
63error: 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 |
6642 | forget(s4);
67 | ^^^^^^^^^^
68 |
69note: argument has type SomeStruct
70 --> $DIR/drop_forget_copy.rs:42:12
71 |
7242 | forget(s4);
73 | ^^
74
2c00a5a8
XL
75error: aborting due to 6 previous errors
76