blob: 7c8577fd1b06e24229ff04d6a9ea79971fd1c4a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use pin_project::pin_project;
#[pin_project(project = EnumProj, project_ref = EnumProjRef)]
pub enum Enum<T, U> {
Struct {
#[pin]
pinned: T,
unpinned: U,
},
Tuple(#[pin] T, U),
Unit,
}
fn main() {}
|