@@ -12,24 +12,29 @@ enum A { B, C }
12
12
13
13
fn main ( ) {
14
14
match ( true , false ) {
15
- B => ( ) , //~ ERROR expected `(bool,bool)`, found an enum or structure pattern
15
+ B => ( ) ,
16
+ //~^ ERROR mismatched types: expected `(bool,bool)`, found `A`
17
+ // (expected tuple, found enum A)
16
18
_ => ( )
17
19
}
18
20
19
21
match ( true , false ) {
20
22
( true , false , false ) => ( )
21
- //~^ ERROR mismatched types: expected `(bool,bool)`, found tuple
23
+ //~^ ERROR mismatched types: expected `(bool,bool)`,
24
+ // found `(<generic #7>,<generic #8>,<generic #9>)`
22
25
// (expected a tuple with 2 elements, found one with 3 elements)
23
26
}
24
27
25
28
match ( true , false ) {
26
29
box ( true , false ) => ( )
27
- //~^ ERROR mismatched types: expected `(bool,bool)`, found a box pattern
30
+ //~^ ERROR mismatched types: expected `(bool,bool)`, found `Box<<generic #11>>`
31
+ // (expected tuple, found box)
28
32
}
29
33
30
34
match ( true , false ) {
31
35
& ( true , false ) => ( )
32
- //~^ ERROR mismatched types: expected `(bool,bool)`, found an `&`-pointer pattern
36
+ //~^ ERROR mismatched types: expected `(bool,bool)`, found `&<generic #15>`
37
+ // (expected tuple, found &-ptr)
33
38
}
34
39
35
40
0 commit comments