]> git.lizzy.rs Git - rust.git/blob - src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs
Auto merge of #102684 - JhonnyBillM:delete-target-data-layout-errors-wrapper, r=davidtwco
[rust.git] / src / test / ui / autoref-autoderef / autoderef-and-borrow-method-receiver.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 struct Foo {
6     x: isize,
7 }
8
9 impl Foo {
10     pub fn f(&self) {}
11 }
12
13 fn g(x: &mut Foo) {
14     x.f();
15 }
16
17 pub fn main() {
18 }