2022-04-24 18:45:39 -05:00
|
|
|
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> {
|
2022-07-01 18:47:26 -05:00
|
|
|
| ----------------- method `kind` not found for this struct
|
2022-04-24 18:45:39 -05:00
|
|
|
...
|
|
|
|
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();
|
|
|
|
| ++++++
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-04-24 18:45:39 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|