Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
nll
/
issue-52742.rs
blob: db9ddfff285b3c23776dcceba9fb5a5652ee4b45 [
file
] [
log
] [
blame
]
#![
feature
(
in_band_lifetimes
)]
struct
Foo
<
'a, '
b
>
{
x
:
&
'
a u32
,
y
:
&
'
b u32
,
}
struct
Bar
<
'
b
>
{
z
:
&
'
b u32
,
}
impl
Foo
<
'_, '
_
>
{
fn
take_bar
(&
mut
self
,
b
:
Bar
<
'
_
>)
{
self
.
y
=
b
.
z
//~^ ERROR
}
}
fn
main
()
{}