diff options
Diffstat (limited to 'tests/ui/suggestions/field-has-method.stderr')
-rw-r--r-- | tests/ui/suggestions/field-has-method.stderr | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/suggestions/field-has-method.stderr b/tests/ui/suggestions/field-has-method.stderr new file mode 100644 index 000000000..def164017 --- /dev/null +++ b/tests/ui/suggestions/field-has-method.stderr @@ -0,0 +1,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`. |