]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3707.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / 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 for type `&Obj` in the current scope
11     }
12 }
13
14 fn main() {
15     let o = Obj { member: 0 };
16     o.chirp();
17     1 + 1;
18 }