fork/rust

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

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

master
494 B17 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-7867.rs:7:9
3   |
4LL | enum A { B, C }
5   |          - unit variant defined here
6...
7LL |     match (true, false) {
8   |           ------------- this expression has type `(bool, bool)`
9LL |         A::B => (),
10   |         ^^^^ expected `(bool, bool)`, found `A`
11   |
12   = note: expected tuple `(bool, bool)`
13               found enum `A`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0308`.