rust/tests/ui/self/arbitrary_self_types_needing_mut_pin.rs
2024-02-16 20:02:50 +00:00

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
}