]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-arm-resolving-to-never.stderr
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / match / match-arm-resolving-to-never.stderr
1 error[E0308]: `match` arms have incompatible types
2   --> $DIR/match-arm-resolving-to-never.rs:17:17
3    |
4 LL | /     match E::F {
5 LL | |         E::A => 1,
6 LL | |         E::B => 2,
7 LL | |         E::C => 3,
8 LL | |         E::D => 4,
9 LL | |         E::E => unimplemented!(""),
10    | |                 ------------------ this and all prior arms are found to be of type `{integer}`
11 LL | |         E::F => "",
12    | |                 ^^ expected integer, found `&str`
13 LL | |     };
14    | |_____- `match` arms have incompatible types
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.