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