Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex2b-push-no-existing-names.rs
blob: 82e0c9bc26e898ee07e627a3181375a20914a870 [
file
] [
log
] [
blame
]
struct
Ref
<
'a, T: '
a
>
{
data
:
&
'
a T
}
fn
foo
(
x
:
&
mut
Vec
<
Ref
<
i32
>>,
y
:
Ref
<
i32
>)
{
x
.
push
(
y
);
//~ ERROR lifetime mismatch
}
fn
main
()
{
}