2020-01-04 18:17:46 -06:00
|
|
|
error[E0308]: `match` arms have incompatible types
|
2019-08-07 00:20:42 -05:00
|
|
|
--> $DIR/match-arm-resolving-to-never.rs:17:17
|
|
|
|
|
|
|
|
|
LL | / match E::F {
|
|
|
|
LL | | E::A => 1,
|
|
|
|
LL | | E::B => 2,
|
|
|
|
LL | | E::C => 3,
|
|
|
|
LL | | E::D => 4,
|
|
|
|
LL | | E::E => unimplemented!(""),
|
|
|
|
| | ------------------ this and all prior arms are found to be of type `{integer}`
|
|
|
|
LL | | E::F => "",
|
2019-11-15 11:37:01 -06:00
|
|
|
| | ^^ expected integer, found `&str`
|
2019-08-07 00:20:42 -05:00
|
|
|
LL | | };
|
|
|
|
| |_____- `match` arms have incompatible types
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-08-07 00:20:42 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|