Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-both-are-structs-3.rs
blob: 4a479f19c7257d9b277ae6c7e0605f58ca9075fd [
file
] [
log
] [
blame
]
struct
Ref
<
'a, '
b
>
{
a
:
&
'
a u32
,
b
:
&
'
b u32
,
}
fn
foo
(
mut
x
:
Ref
)
{
x
.
a
=
x
.
b
;
//~^ ERROR lifetime may not live long enough
}
fn
main
()
{}