mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
14 lines
212 B
Rust
14 lines
212 B
Rust
//@ 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
|
|
}
|