Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
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
()
{
}