| 1 |
error[E0061]: this function takes 0 arguments but 1 argument was supplied |
| 2 |
--> tests/ui/pinned_drop/call-drop-inner.rs:12:13 |
| 3 |
| |
| 4 |
12 | __drop_inner(this); |
| 5 |
| ^^^^^^^^^^^^ ---- unexpected argument of type `Pin<&mut S>` |
| 6 |
| |
| 7 |
note: function defined here |
| 8 |
--> tests/ui/pinned_drop/call-drop-inner.rs:5:1 |
| 9 |
| |
| 10 |
5 | / pin_project! { |
| 11 |
6 | | pub struct S { |
| 12 |
7 | | #[pin] |
| 13 |
8 | | field: u8, |
| 14 |
... | |
| 15 |
15 | | } |
| 16 |
| |_^ |
| 17 |
= note: this error originates in the macro `$crate::__pin_project_make_drop_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 18 |
help: remove the extra argument |
| 19 |
| |
| 20 |
12 - __drop_inner(this); |
| 21 |
12 + __drop_inner(); |
| 22 |
| |