fork/rust

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

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

master
533 B12 linesraw
1error[E0308]: `match` arms have incompatible types
2  --> $DIR/single-line.rs:2:52
3   |
4LL |     let _ = match Some(42) { Some(x) => x, None => "" };
5   |             --------------              -          ^^ expected integer, found `&str`
6   |             |                           |
7   |             |                           this is found to be of type `{integer}`
8   |             `match` arms have incompatible types
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0308`.