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