summaryrefslogtreecommitdiffstats
path: root/third_party/rust/pin-project/examples/enum-default.rs
blob: bd3f2e636cc9e7d76a743301e2eef45784d95ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// See ./enum-default-expanded.rs for generated code.

#![allow(dead_code)]

use pin_project::pin_project;

#[pin_project(project = EnumProj)]
enum Enum<T, U> {
    Pinned(#[pin] T),
    Unpinned(U),
}

fn main() {}