aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/call-drop-inner.rs
blob: c953acbbb430d663ff99ca19717515095bc5309a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use pin_project::{pin_project, pinned_drop};
use std::pin::Pin;

#[pin_project(PinnedDrop)]
struct Struct {
    dropped: bool,
}

#[pinned_drop]
impl PinnedDrop for Struct {
    fn drop(mut self: Pin<&mut Self>) {
        __drop_inner(__self);
    }
}

fn main() {}