Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex1-return-one-existing-name-if-else-using-impl-2.rs
blob: 7bc3fa623ee907eca64274de06a868922a9acab3 [
file
] [
log
] [
blame
]
trait
Foo
{
fn
foo
<
'a>(x: &i32, y: &'
a i32
)
->
&
'
a i32
{
if
x
>
y
{
x
}
else
{
y
}
//~ ERROR explicit lifetime
}
}
fn
main
()
{
}