rust/tests/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs
2023-01-11 09:32:08 +00:00

19 lines
185 B
Rust

// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
struct Foo {
x: isize,
}
impl Foo {
pub fn f(&self) {}
}
fn g(x: &mut Foo) {
x.f();
}
pub fn main() {
}