Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-errors
/
ex3-both-anon-regions-both-are-structs-earlybound-regions.rs
blob: 87f9cc17726cd7227d6d2f3c02cb22ec1c4a5e22 [
file
] [
log
] [
blame
]
struct
Ref
<
'
a
>
{
x
:
&
'
a u32
,
}
fn
foo
<
'a, '
b
>(
mut
x
:
Vec
<
Ref
<
'a>>, y: Ref<'
b
>)
where
&
'
a
():
Sized
,
&
'
b u32
:
Sized
{
x
.
push
(
y
);
//~ ERROR lifetime mismatch
}
fn
main
()
{}