]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-60057.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-60057.rs
1 struct A {
2     banana: u8,
3 }
4
5 impl A {
6     fn new(peach: u8) -> A {
7         A {
8             banana: banana //~ ERROR cannot find value `banana` in this scope
9         }
10     }
11
12     fn foo(&self, peach: u8) -> A {
13         A {
14             banana: banana //~ ERROR cannot find value `banana` in this scope
15         }
16     }
17 }
18
19 fn main() {}