Sign in
android
/
toolchain
/
rustc
/
refs/heads/rust-1.73.0
/
.
/
tests
/
ui
/
self
/
arbitrary_self_types_needing_mut_pin.fixed
blob: ccd65ff409138eca56466a337e0d0db9ec85912a [
file
] [
log
] [
blame
]
// run-rustfix
use
std
::
pin
::
Pin
;
struct
S
;
impl S
{
fn x
(
self
:
Pin
<&
mut
Self
>)
{
}
}
fn main
()
{
Pin
::
new
(&
mut S
).
x
();
//~ ERROR no method named `x` found
}