Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
self
/
arbitrary_self_types_pin_needing_borrow.rs
blob: d877dbe60754deaf1b8fa182327e4794d174e7b6 [
file
] [
log
] [
blame
]
use
std
::
pin
::
Pin
;
struct
S
;
impl
S
{
fn
x
(
self
:
Pin
<&
mut
Self
>)
{
}
}
fn
main
()
{
Pin
::
new
(
S
).
x
();
//~^ ERROR the trait bound `S: Deref` is not satisfied
//~| ERROR no method named `x` found for struct `Pin` in the current scope
}