android13/external/rust/crates/pin-project/tests/expand/multifields/enum.rs

18 lines
339 B
Rust

use pin_project::pin_project;
#[pin_project(project = EnumProj, project_ref = EnumProjRef, project_replace = EnumProjOwn)]
enum Enum<T, U> {
Struct {
#[pin]
pinned1: T,
#[pin]
pinned2: T,
unpinned1: U,
unpinned2: U,
},
Tuple(#[pin] T, #[pin] T, U, U),
Unit,
}
fn main() {}