Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-both-are-structs-latebound-regions.rs
blob: 4be76c2a0da54c4fa8636cb5926e6509b24012dd [
file
] [
log
] [
blame
]
struct
Ref
<
'
a
>
{
x
:
&
'
a u32
,
}
fn
foo
<
'a, '
b
>(
mut
x
:
Vec
<
Ref
<
'a>>, y: Ref<'
b
>)
{
x
.
push
(
y
);
//~ ERROR lifetime mismatch
}
fn
main
()
{}