mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
18 lines
550 B
Plaintext
18 lines
550 B
Plaintext
error[E0599]: no method named `kind` found for struct `InferOk` in the current scope
|
|
--> $DIR/field-has-method.rs:19:15
|
|
|
|
|
LL | struct InferOk<T> {
|
|
| ----------------- method `kind` not found for this struct
|
|
...
|
|
LL | let k = i.kind();
|
|
| ^^^^ method not found in `InferOk<Ty>`
|
|
|
|
|
help: one of the expressions' fields has a method of the same name
|
|
|
|
|
LL | let k = i.value.kind();
|
|
| ++++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|