2020-08-09 18:56:47 -05:00
|
|
|
error[E0769]: tuple variant `MyOption::MySome` written as struct variant
|
|
|
|
--> $DIR/issue-17800.rs:8:9
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | MyOption::MySome { x: 42 } => (),
|
2021-02-20 14:33:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use the tuple variant pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | MyOption::MySome(42) => (),
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2018-10-19 05:33:49 -05:00
|
|
|
error: aborting due to previous error
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2020-08-09 18:56:47 -05:00
|
|
|
For more information about this error, try `rustc --explain E0769`.
|