1 use pin_project::pin_project;
2 
3 #[pin_project]
4 struct S {
5     //~^ ERROR may not be used on structs with zero fields
6     #[cfg(any())]
7     #[pin]
8     f: u8,
9 }
10 
main()11 fn main() {}
12