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