Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
self
/
arbitrary_self_types_needing_mut_pin.fixed
blob: a400a1672a43c815aced596dc568860cae59f881 [
file
] [
log
] [
blame
]
// run-rustfix
use
std
::
pin
::
Pin
;
struct
S
;
impl S
{
fn x
(
self
:
Pin
<&
mut
Self
>)
{
}
}
fn main
()
{
let
mut pinned
=
std
::
pin
::
pin
!(
S
);
pinned
.
as_mut
().
x
();
//~ ERROR no method named `x` found
}