Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
regions
/
regions-nullary-variant.rs
blob: 24c5c6765a86cb3d74512e5e362b800120a42d72 [
file
] [
log
] [
blame
]
//@ 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
()
{}