aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/cfg/unsupported.rs
blob: c450f6ffa1543aa91389152e47866669d760d20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use pin_project::pin_project;

//~ ERROR may not be used on structs with zero fields
// span is lost.
// Refs: https://github.com/rust-lang/rust/issues/43081
#[pin_project]
struct S {
    #[cfg(any())]
    #[pin]
    f: u8,
}

fn main() {}