]> git.lizzy.rs Git - rust.git/blob - src/test/ui/autoref-autoderef/auto-ref.rs
Auto merge of #102684 - JhonnyBillM:delete-target-data-layout-errors-wrapper, r=davidtwco
[rust.git] / src / test / ui / autoref-autoderef / auto-ref.rs
1 // run-pass
2 struct Foo {
3     x: isize,
4 }
5
6 trait Stuff {
7     fn printme(&self);
8 }
9
10 impl Stuff for Foo {
11     fn printme(&self) {
12         println!("{}", self.x);
13     }
14 }
15
16 pub fn main() {
17     let x = Foo { x: 3 };
18     x.printme();
19 }