Files
rust/tests/ui/binding/method-call-nonsensical-pattern-binding-7092.stderr

15 lines
451 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0308]: mismatched types
2025-08-20 14:02:44 -04:00
--> $DIR/method-call-nonsensical-pattern-binding-7092.rs:7:9
2018-07-15 14:11:54 -07:00
|
LL | match x {
| - this expression has type `Whatever`
2018-07-15 14:11:54 -07:00
LL | Some(field) =>
| ^^^^^^^^^^^ expected `Whatever`, found `Option<_>`
2018-07-15 14:11:54 -07:00
|
= note: expected enum `Whatever`
found enum `Option<_>`
2018-07-15 14:11:54 -07:00
error: aborting due to 1 previous error
2018-07-15 14:11:54 -07:00
For more information about this error, try `rustc --explain E0308`.