fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
630 B21 linesraw
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
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0308`.