#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::pin::Pin; struct Type {} impl Type { fn method(self: Pin<&mut Self>) {} fn call_method_twice(mut self: Pin<&mut Self>) { self.as_mut().method(); self.as_mut().method(); } } fn main() {}