mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
15 lines
226 B
Rust
15 lines
226 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
|
enum roption<'a> {
|
|
a, b(&'a usize)
|
|
}
|
|
|
|
fn mk(cond: bool, ptr: &usize) -> roption<'_> {
|
|
if cond {roption::a} else {roption::b(ptr)}
|
|
}
|
|
|
|
pub fn main() {}
|