Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-using-impl-items.rs
blob: 6f95d5a710dfb62b51191a3260b3a661b49accc0 [
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 mismatch
}
}
fn
main
()
{}