]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-3707.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / issues / issue-3707.rs
1 struct Obj {
2     member: usize
3 }
4
5 impl Obj {
6     pub fn boom() -> bool {
7         return 1+1 == 2
8     }
9     pub fn chirp(&self) {
10         self.boom(); //~ ERROR no method named `boom` found
11     }
12 }
13
14 fn main() {
15     let o = Obj { member: 0 };
16     o.chirp();
17     1 + 1;
18 }