Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex1b-return-no-names-if-else.rs
blob: d1263a4acb28a1d8cec5b00b1dac0cd9475cf277 [
file
] [
log
] [
blame
]
fn
foo
(
x
:
&
i32
,
y
:
&
i32
)
->
&
i32
{
//~ ERROR missing lifetime
if
x
>
y
{
x
}
else
{
y
}
}
fn
main
()
{
}