2019-04-17 19:22:16 -05:00
|
|
|
struct A {
|
|
|
|
banana: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl A {
|
|
|
|
fn new(peach: u8) -> A {
|
|
|
|
A {
|
|
|
|
banana: banana //~ ERROR cannot find value `banana` in this scope
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(&self, peach: u8) -> A {
|
|
|
|
A {
|
|
|
|
banana: banana //~ ERROR cannot find value `banana` in this scope
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-08 12:06:49 -05:00
|
|
|
|
|
|
|
fn main() {}
|