rust/tests/ui/match/match-arm-resolving-to-never.stderr

22 lines
794 B
Plaintext

error[E0308]: `match` arms have incompatible types
--> $DIR/match-arm-resolving-to-never.rs:17:17
|
LL | / match E::F {
LL | | E::A => 1,
| | - this is found to be of type `{integer}`
LL | | E::B => 2,
| | - this is found to be of type `{integer}`
LL | | E::C => 3,
| | - this is found to be of type `{integer}`
LL | | E::D => 4,
| | - this is found to be of type `{integer}`
LL | | E::E => unimplemented!(""),
LL | | E::F => "",
| | ^^ expected integer, found `&str`
LL | | };
| |_____- `match` arms have incompatible types
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.