Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-self-is-anon.rs
blob: 79d7d63c8bb1e60f5df5130557328baddc579bf9 [
file
] [
log
] [
blame
]
struct
Foo
{
field
:
i32
,
}
impl
Foo
{
fn
foo
<
'
a
>(&
self
,
x
:
&
Foo
)
->
&
Foo
{
if
true
{
x
}
else
{
self
}
//~ ERROR lifetime mismatch
}
}
fn
main
()
{}