1 error[E0599]: no method named `kind` found for struct `InferOk` in the current scope
2 --> $DIR/field-has-method.rs:19:15
4 LL | struct InferOk<T> {
5 | ----------------- method `kind` not found for this struct
8 | ^^^^ method not found in `InferOk<Ty>`
10 help: one of the expressions' fields has a method of the same name
12 LL | let k = i.value.kind();
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0599`.