Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-using-impl-items.rs
blob: 73e1789f225271f5fcb891625f40397e97fa601e [
file
] [
log
] [
blame
]
trait
Foo
{
fn
foo
<
'
a
>(
x
:
&
mut
Vec
<&
u8
>,
y
:
&
u8
);
}
impl
Foo
for
()
{
fn
foo
(
x
:
&
mut
Vec
<&
u8
>,
y
:
&
u8
)
{
x
.
push
(
y
);
//~^ ERROR lifetime may not live long enough
}
}
fn
main
()
{}