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