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