android13/external/rust/crates/pin-project/tests/ui/cfg/unsupported.rs

12 lines
172 B
Rust

use pin_project::pin_project;
#[pin_project]
struct S {
//~^ ERROR may not be used on structs with zero fields
#[cfg(any())]
#[pin]
f: u8,
}
fn main() {}