mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
13 lines
158 B
Rust
13 lines
158 B
Rust
//@ run-rustfix
|
|
use std::pin::Pin;
|
|
struct S;
|
|
|
|
impl S {
|
|
fn x(self: Pin<&mut Self>) {
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
S.x(); //~ ERROR no method named `x` found
|
|
}
|