]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-nullary-variant.rs
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-nullary-variant.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 // pretty-expanded FIXME #23616
6
7 enum roption<'a> {
8     a, b(&'a usize)
9 }
10
11 fn mk(cond: bool, ptr: &usize) -> roption {
12     if cond {roption::a} else {roption::b(ptr)}
13 }
14
15 pub fn main() {}