Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
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
()
{}