]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/field-has-method.stderr
Tweak use of trimmed paths
[rust.git] / tests / ui / suggestions / field-has-method.stderr
1 error[E0599]: no method named `kind` found for struct `InferOk` in the current scope
2   --> $DIR/field-has-method.rs:19:15
3    |
4 LL | struct InferOk<T> {
5    | ----------------- method `kind` not found for this struct
6 ...
7 LL |     let k = i.kind();
8    |               ^^^^ method not found in `InferOk<Ty>`
9    |
10 help: one of the expressions' fields has a method of the same name
11    |
12 LL |     let k = i.value.kind();
13    |               ++++++
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0599`.