Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-both-are-structs-3.rs
blob: 3b22aef6f324253a30e2bf07a3debc8c78d3981f [
file
] [
log
] [
blame
]
struct
Ref
<
'a, '
b
>
{
a
:
&
'
a u32
,
b
:
&
'
b u32
,
}
fn
foo
(
mut
x
:
Ref
)
{
x
.
a
=
x
.
b
;
//~ ERROR lifetime mismatch
}
fn
main
()
{}