rust/tests/ui/issues/issue-65462.rs
2023-01-11 09:32:08 +00:00

15 lines
199 B
Rust

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