blob: 754d48c9f9642308321e8afe8daa764c845a280e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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() {}
|