1 error[E0026]: variant `MyOption::MySome` does not have a field named `x`
2 --> $DIR/issue-17800.rs:18:28
4 LL | MyOption::MySome { x: 42 } => (),
5 | ^^^^^ variant `MyOption::MySome` does not have this field
7 error[E0027]: pattern does not mention field `0`
8 --> $DIR/issue-17800.rs:18:9
10 LL | MyOption::MySome { x: 42 } => (),
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `0`
13 = note: trying to match a tuple variant with a struct variant pattern
15 error: aborting due to 2 previous errors
17 Some errors occurred: E0026, E0027.
18 For more information about an error, try `rustc --explain E0026`.