android13/external/rust/crates/pin-project/tests/ui/pinned_drop/pinned-drop-no-attr-arg.rs

18 lines
230 B
Rust

use std::pin::Pin;
use pin_project::{pin_project, pinned_drop};
#[pin_project]
struct S {
#[pin]
f: u8,
}
#[pinned_drop]
impl PinnedDrop for S {
//~^ ERROR E0119
fn drop(self: Pin<&mut Self>) {}
}
fn main() {}