Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-both-are-structs.rs
blob: 4bf5db41f4e92dcef0d1ffe4ffc2d16bec4fa6b7 [
file
] [
log
] [
blame
]
struct
Ref
<
'
a
>
{
x
:
&
'
a u32
,
}
fn
foo
(
mut
x
:
Vec
<
Ref
>,
y
:
Ref
)
{
x
.
push
(
y
);
//~^ ERROR lifetime may not live long enough
}
fn
main
()
{}