]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/drop_ref.stderr
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / drop_ref.stderr
1 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
2   --> $DIR/drop_ref.rs:11:5
3    |
4 LL |     drop(&SomeStruct);
5    |     ^^^^^^^^^^^^^^^^^
6    |
7 note: argument has type `&SomeStruct`
8   --> $DIR/drop_ref.rs:11:10
9    |
10 LL |     drop(&SomeStruct);
11    |          ^^^^^^^^^^^
12    = note: `-D clippy::drop-ref` implied by `-D warnings`
13
14 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
15   --> $DIR/drop_ref.rs:14:5
16    |
17 LL |     drop(&owned1);
18    |     ^^^^^^^^^^^^^
19    |
20 note: argument has type `&SomeStruct`
21   --> $DIR/drop_ref.rs:14:10
22    |
23 LL |     drop(&owned1);
24    |          ^^^^^^^
25
26 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
27   --> $DIR/drop_ref.rs:15:5
28    |
29 LL |     drop(&&owned1);
30    |     ^^^^^^^^^^^^^^
31    |
32 note: argument has type `&&SomeStruct`
33   --> $DIR/drop_ref.rs:15:10
34    |
35 LL |     drop(&&owned1);
36    |          ^^^^^^^^
37
38 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
39   --> $DIR/drop_ref.rs:16:5
40    |
41 LL |     drop(&mut owned1);
42    |     ^^^^^^^^^^^^^^^^^
43    |
44 note: argument has type `&mut SomeStruct`
45   --> $DIR/drop_ref.rs:16:10
46    |
47 LL |     drop(&mut owned1);
48    |          ^^^^^^^^^^^
49
50 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
51   --> $DIR/drop_ref.rs:20:5
52    |
53 LL |     drop(reference1);
54    |     ^^^^^^^^^^^^^^^^
55    |
56 note: argument has type `&SomeStruct`
57   --> $DIR/drop_ref.rs:20:10
58    |
59 LL |     drop(reference1);
60    |          ^^^^^^^^^^
61
62 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
63   --> $DIR/drop_ref.rs:23:5
64    |
65 LL |     drop(reference2);
66    |     ^^^^^^^^^^^^^^^^
67    |
68 note: argument has type `&mut SomeStruct`
69   --> $DIR/drop_ref.rs:23:10
70    |
71 LL |     drop(reference2);
72    |          ^^^^^^^^^^
73
74 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
75   --> $DIR/drop_ref.rs:26:5
76    |
77 LL |     drop(reference3);
78    |     ^^^^^^^^^^^^^^^^
79    |
80 note: argument has type `&SomeStruct`
81   --> $DIR/drop_ref.rs:26:10
82    |
83 LL |     drop(reference3);
84    |          ^^^^^^^^^^
85
86 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
87   --> $DIR/drop_ref.rs:31:5
88    |
89 LL |     drop(&val);
90    |     ^^^^^^^^^^
91    |
92 note: argument has type `&T`
93   --> $DIR/drop_ref.rs:31:10
94    |
95 LL |     drop(&val);
96    |          ^^^^
97
98 error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing
99   --> $DIR/drop_ref.rs:39:5
100    |
101 LL |     std::mem::drop(&SomeStruct);
102    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
103    |
104 note: argument has type `&SomeStruct`
105   --> $DIR/drop_ref.rs:39:20
106    |
107 LL |     std::mem::drop(&SomeStruct);
108    |                    ^^^^^^^^^^^
109
110 error: aborting due to 9 previous errors
111