fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0308]: match arms have incompatible types 2 --> $DIR/issue-11319.rs:8:20 3 | 4LL | / match Some(10) { 5LL | | 6LL | | Some(5) => false, 7 | | ----- this is found to be of type `bool` 8LL | | 9LL | | Some(2) => true, 10 | | ---- this is found to be of type `bool` 11LL | | 12LL | | None => (), 13 | | ^^ expected bool, found () 14... | 15LL | | _ => true 16LL | | } 17 | |_____- `match` arms have incompatible types 18 | 19 = note: expected type `bool` 20 found type `()` 21 22error: aborting due to previous error 23 24For more information about this error, try `rustc --explain E0308`.