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