rust/tests/ui/self/arbitrary_self_types_needin...

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
}