Debian Codegraph @

third_party/rust/pin-project/tests/ui/pinned_drop/invalid.stderr

raw
1 error: unexpected argument: `foo`
2 --> tests/ui/pinned_drop/invalid.rs:9:19
3 |
4 9 | #[pinned_drop(foo)] //~ ERROR unexpected argument
5 | ^^^
6
7 error: duplicate #[pinned_drop] attribute
8 --> tests/ui/pinned_drop/invalid.rs:30:5
9 |
10 30 | #[pinned_drop] //~ ERROR duplicate #[pinned_drop] attribute
11 | ^^^^^^^^^^^^^^
12
13 error: #[pinned_drop] may only be used on implementation for the `PinnedDrop` trait
14 --> tests/ui/pinned_drop/invalid.rs:43:10
15 |
16 43 | impl Drop for TraitImpl {} //~ ERROR may only be used on implementation for the `PinnedDrop` trait
17 | ^^^^
18
19 error: #[pinned_drop] may only be used on implementation for the `PinnedDrop` trait
20 --> tests/ui/pinned_drop/invalid.rs:49:10
21 |
22 49 | impl InherentImpl {} //~ ERROR may only be used on implementation for the `PinnedDrop` trait
23 | ^^^^^^^^^^^^
24
25 error: expected `impl`
26 --> tests/ui/pinned_drop/invalid.rs:52:5
27 |
28 52 | fn func(_: Pin<&mut ()>) {} //~ ERROR expected `impl`
29 | ^^
30
31 error: implementing the trait `PinnedDrop` is not unsafe
32 --> tests/ui/pinned_drop/invalid.rs:62:5
33 |
34 62 | unsafe impl PinnedDrop for Impl {
35 | ^^^^^^
36
37 error: implementing the method `drop` is not unsafe
38 --> tests/ui/pinned_drop/invalid.rs:72:9
39 |
40 72 | unsafe fn drop(self: Pin<&mut Self>) {} //~ ERROR implementing the method `drop` is not unsafe
41 | ^^^^^^
42
43 error: not all trait items implemented, missing: `drop`
44 --> tests/ui/pinned_drop/invalid.rs:83:5
45 |
46 83 | impl PinnedDrop for Empty {} //~ ERROR not all trait items implemented, missing: `drop`
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
49 error: const `A` is not a member of trait `PinnedDrop`
50 --> tests/ui/pinned_drop/invalid.rs:90:9
51 |
52 90 | const A: u8 = 0; //~ ERROR const `A` is not a member of trait `PinnedDrop`
53 | ^^^^^^^^^^^^^^^^
54
55 error: const `A` is not a member of trait `PinnedDrop`
56 --> tests/ui/pinned_drop/invalid.rs:100:9
57 |
58 100 | const A: u8 = 0; //~ ERROR const `A` is not a member of trait `PinnedDrop`
59 | ^^^^^^^^^^^^^^^^
60
61 error: type `A` is not a member of trait `PinnedDrop`
62 --> tests/ui/pinned_drop/invalid.rs:108:9
63 |
64 108 | type A = u8; //~ ERROR type `A` is not a member of trait `PinnedDrop`
65 | ^^^^^^^^^^^^
66
67 error: type `A` is not a member of trait `PinnedDrop`
68 --> tests/ui/pinned_drop/invalid.rs:118:9
69 |
70 118 | type A = u8; //~ ERROR type `A` is not a member of trait `PinnedDrop`
71 | ^^^^^^^^^^^^
72
73 error: duplicate definitions with name `drop`
74 --> tests/ui/pinned_drop/invalid.rs:127:9
75 |
76 127 | fn drop(self: Pin<&mut Self>) {} //~ ERROR duplicate definitions with name `drop`
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
79 error: method `drop` must return the unit type
80 --> tests/ui/pinned_drop/invalid.rs:149:42
81 |
82 149 | fn drop(self: Pin<&mut Self>) -> Self {} //~ ERROR method `drop` must return the unit type
83 | ^^^^
84
85 error: method `drop` must take an argument `self: Pin<&mut Self>`
86 --> tests/ui/pinned_drop/invalid.rs:157:16
87 |
88 157 | fn drop() {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>`
89 | ^^
90
91 error: method `drop` must take an argument `self: Pin<&mut Self>`
92 --> tests/ui/pinned_drop/invalid.rs:165:17
93 |
94 165 | fn drop(self: Pin<&mut Self>, _: ()) {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>`
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
96
97 error: method `drop` must take an argument `self: Pin<&mut Self>`
98 --> tests/ui/pinned_drop/invalid.rs:173:17
99 |
100 173 | fn drop(&mut self) {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>`
101 | ^^^^^^^^^
102
103 error: method `drop` must take an argument `self: Pin<&mut Self>`
104 --> tests/ui/pinned_drop/invalid.rs:181:17
105 |
106 181 | fn drop(_: Pin<&mut Self>) {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>`
107 | ^^^^^^^^^^^^^^^^^
108
109 error: method `drop` must take an argument `self: Pin<&mut Self>`
110 --> tests/ui/pinned_drop/invalid.rs:189:17
111 |
112 189 | fn drop(self: Pin<&Self>) {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>`
113 | ^^^^^^^^^^^^^^^^
114
115 error: method `drop` must take an argument `self: Pin<&mut Self>`
116 --> tests/ui/pinned_drop/invalid.rs:197:17
117 |
118 197 | fn drop(self: Pin<&mut ()>) {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>`
119 | ^^^^^^^^^^^^^^^^^^
120
121 error: method `pinned_drop` is not a member of trait `PinnedDrop
122 --> tests/ui/pinned_drop/invalid.rs:205:12
123 |
124 205 | fn pinned_drop(self: Pin<&mut Self>) {} //~ ERROR method `pinned_drop` is not a member of trait `PinnedDrop
125 | ^^^^^^^^^^^
126
127 error: implementing the trait `PinnedDrop` on this type is unsupported
128 --> tests/ui/pinned_drop/invalid.rs:213:25
129 |
130 213 | impl PinnedDrop for () {
131 | ^^
132
133 error: implementing the trait `PinnedDrop` on this type is unsupported
134 --> tests/ui/pinned_drop/invalid.rs:219:25
135 |
136 219 | impl PinnedDrop for &mut A {
137 | ^^^^^^
138
139 error: implementing the trait `PinnedDrop` on this type is unsupported
140 --> tests/ui/pinned_drop/invalid.rs:225:25
141 |
142 225 | impl PinnedDrop for [A] {
143 | ^^^