fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
862 B22 linesraw
1error[E0308]: match arms have incompatible types
2  --> $DIR/match-arm-resolving-to-never.rs:17:17
3   |
4LL | /     match E::F {
5LL | |         E::A => 1,
6LL | |         E::B => 2,
7LL | |         E::C => 3,
8LL | |         E::D => 4,
9LL | |         E::E => unimplemented!(""),
10   | |                 ------------------ this and all prior arms are found to be of type `{integer}`
11LL | |         E::F => "",
12   | |                 ^^ expected integer, found reference
13LL | |     };
14   | |_____- `match` arms have incompatible types
15   |
16   = note: expected type `{integer}`
17              found type `&'static str`
18   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0308`.