@@ -13,32 +13,32 @@ enum A { B, C }
1313fn main ( ) {
1414 match ( true , false ) {
1515 B => ( ) ,
16- //~^ ERROR mismatched types: expected `(bool,bool)`, found `A`
17- // (expected tuple, found enum A)
16+ //~^ ERROR mismatched types: expected `(bool, bool)`, found `A` (expected tuple, found enum A)
1817 _ => ( )
1918 }
2019
2120 match ( true , false ) {
2221 ( true , false , false ) => ( )
23- //~^ ERROR mismatched types: expected `(bool,bool)`,
24- // found `(<generic #7>,<generic #8>,<generic #9>)`
25- // (expected a tuple with 2 elements, found one with 3 elements)
22+ //~^ ERROR mismatched types: expected `(bool, bool)`, found `(_#9, _#10, _#11)`
23+ }
24+
25+ match ( true , false ) {
26+ ( true , false , false ) => ( )
27+ //~^ ERROR (expected a tuple with 2 elements, found one with 3 elements)
2628 }
2729
2830 match ( true , false ) {
2931 box ( true , false ) => ( )
30- //~^ ERROR mismatched types: expected `(bool,bool)`, found `Box<<generic #15>>`
31- // (expected tuple, found box)
32+ //~^ ERROR mismatched types: expected `(bool, bool)`, found `Box<_>` (expected tuple, found box)
3233 }
3334
3435 match ( true , false ) {
3536 & ( true , false ) => ( )
36- //~^ ERROR mismatched types: expected `(bool,bool)`, found `&<generic #21>`
37- // (expected tuple, found &-ptr)
37+ //~^ ERROR mismatched types: expected `(bool, bool)`, found `&_` (expected tuple, found &-ptr)
3838 }
3939
4040
41- let v = [ ( 'a' , 'b' ) //~ ERROR expected function, found `(char,char)`
41+ let v = [ ( 'a' , 'b' ) //~ ERROR expected function, found `(char, char)`
4242 ( 'c' , 'd' ) ,
4343 ( 'e' , 'f' ) ] ;
4444
0 commit comments