summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/field-has-method.stderr
blob: def16401750d5a61c508879aa7aec3b8ed4e477f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 previous error

For more information about this error, try `rustc --explain E0599`.