Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex2a-push-one-existing-name.rs
blob: 5188ea1cc9cb0fbe7a36e7dd62608ecc458752e8 [
file
] [
log
] [
blame
]
struct
Ref
<
'a, T: '
a
>
{
data
:
&
'
a T
}
fn
foo
<
'a>(x: &mut Vec<Ref<'
a
,
i32
>>,
y
:
Ref
<
i32
>)
{
x
.
push
(
y
);
//~ ERROR explicit lifetime
}
fn
main
()
{
}