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