fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `field` in this scope 2 --> $DIR/field-and-method-in-self-not-available-in-assoc-fn.rs:11:9 3 | 4LL | field: u32, 5 | ---------- a field by that name exists in `Self` 6... 7LL | fn field(&self) -> u32 { 8 | ----- a method by that name is available on `Self` here 9... 10LL | field; 11 | ^^^^^ 12 13error[E0425]: cannot find value `field` in this scope 14 --> $DIR/field-and-method-in-self-not-available-in-assoc-fn.rs:12:15 15 | 16LL | field: u32, 17 | ---------- a field by that name exists in `Self` 18... 19LL | fn field(&self) -> u32 { 20 | ----- a method by that name is available on `Self` here 21... 22LL | Foo { field } 23 | ^^^^^ 24 25error[E0425]: cannot find value `field` in this scope 26 --> $DIR/field-and-method-in-self-not-available-in-assoc-fn.rs:15:15 27 | 28LL | fn field(&self) -> u32 { 29 | ----- a method by that name is available on `Self` here 30... 31LL | Foo { field } 32 | ^^^^^ 33 | 34help: you might have meant to use the available field 35 | 36LL | Foo { field: self.field } 37 | ++++++++++++ 38 39error: aborting due to 3 previous errors 40 41For more information about this error, try `rustc --explain E0425`.