Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
borrowck
/
two-phase-method-receivers.rs
blob: 6b879af5aecdac47ebb07c0a0a3b9c093d570335 [
file
] [
log
] [
blame
]
// run-pass
struct
Foo
<
'
a
>
{
x
:
&
'
a i32
}
impl
<
'a> Foo<'
a
>
{
fn
method
(&
mut
self
,
_
:
&
i32
)
{
}
}
fn
main
()
{
let
a
=
&
mut
Foo
{
x
:
&
22
};
Foo
::
method
(
a
,
a
.
x
);
}