summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-65462.rs
blob: 8c39ea531d2446ee3fc6ad5a50151ed16664d001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// build-pass

enum Empty {}
enum Enum {
    Empty( Empty )
}

fn foobar() -> Option< Enum > {
    let value: Option< Empty > = None;
    Some( Enum::Empty( value? ) )
}

fn main() {
    foobar();
}