Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex2c-push-inference-variable.rs
blob: 7f15aee5f08e4b594a22a22b2baabc19ddc1d347 [
file
] [
log
] [
blame
]
struct
Ref
<
'a, T: '
a
>
{
data
:
&
'
a T
}
fn
foo
<
'a, '
b
,
'c>(x: &'
a
mut
Vec
<
Ref
<
'b, i32>>, y: Ref<'
c
,
i32
>)
{
let
z
=
Ref
{
data
:
y
.
data
};
x
.
push
(
z
);
//~ ERROR lifetime mismatch
}
fn
main
()
{
}