Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-using-trait-objects.rs
blob: 97fa9ef914fe6df21c8a6eabbb8fa8c8575fd57a [
file
] [
log
] [
blame
]
fn
foo
(
x
:
Box
<
dyn
Fn
(&
u8
,
&
u8
)>
,
y
:
Vec
<&
u8
>,
z
:
&
u8
)
{
y
.
push
(
z
);
//~^ ERROR lifetime may not live long enough
//~| ERROR cannot borrow
}
fn
main
()
{
}