about summary refs log tree commit diff
path: root/tests/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs
blob: d75a2ab8bdba4f582da393b90f4cd122ab743669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ run-pass
#![allow(dead_code)]

struct Foo {
    x: isize,
}

impl Foo {
    pub fn f(&self) {}
}

fn g(x: &mut Foo) {
    x.f();
}

pub fn main() {
}