Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
issue-52742.rs
blob: d3e201b8ae8e7ab09ee45b0ad1fd9729667cebd6 [
file
] [
log
] [
blame
] [
edit
]
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
()
{}