@@ -19,6 +19,7 @@ struct Foo {
19
19
fn struct_with_a_nested_enum_and_vector ( ) {
20
20
match ( Foo { first : true , second : None } ) {
21
21
//~^ ERROR non-exhaustive patterns: `Foo { first: false, second: Some([_, _, _, _]) }` not covered
22
+ //~| NOTE pattern `Foo { first: false, second: Some([_, _, _, _]) }` not covered
22
23
Foo { first : true , second : None } => ( ) ,
23
24
Foo { first : true , second : Some ( _) } => ( ) ,
24
25
Foo { first : false , second : None } => ( ) ,
@@ -35,6 +36,7 @@ enum Color {
35
36
fn enum_with_single_missing_variant ( ) {
36
37
match Color :: Red {
37
38
//~^ ERROR non-exhaustive patterns: `Red` not covered
39
+ //~| NOTE pattern `Red` not covered
38
40
Color :: CustomRGBA { .. } => ( ) ,
39
41
Color :: Green => ( )
40
42
}
@@ -47,6 +49,7 @@ enum Direction {
47
49
fn enum_with_multiple_missing_variants ( ) {
48
50
match Direction :: North {
49
51
//~^ ERROR non-exhaustive patterns: `East`, `South` and `West` not covered
52
+ //~| NOTE patterns `East`, `South` and `West` not covered
50
53
Direction :: North => ( )
51
54
}
52
55
}
@@ -58,6 +61,7 @@ enum ExcessiveEnum {
58
61
fn enum_with_excessive_missing_variants ( ) {
59
62
match ExcessiveEnum :: First {
60
63
//~^ ERROR `Second`, `Third`, `Fourth` and 8 more not covered
64
+ //~| NOTE patterns `Second`, `Third`, `Fourth` and 8 more not covered
61
65
62
66
ExcessiveEnum :: First => ( )
63
67
}
@@ -66,6 +70,7 @@ fn enum_with_excessive_missing_variants() {
66
70
fn enum_struct_variant ( ) {
67
71
match Color :: Red {
68
72
//~^ ERROR non-exhaustive patterns: `CustomRGBA { a: true, .. }` not covered
73
+ //~| NOTE pattern `CustomRGBA { a: true, .. }` not covered
69
74
Color :: Red => ( ) ,
70
75
Color :: Green => ( ) ,
71
76
Color :: CustomRGBA { a : false , r : _, g : _, b : 0 } => ( ) ,
@@ -82,6 +87,7 @@ fn vectors_with_nested_enums() {
82
87
let x: & ' static [ Enum ] = & [ Enum :: First , Enum :: Second ( false ) ] ;
83
88
match * x {
84
89
//~^ ERROR non-exhaustive patterns: `[Second(true), Second(false)]` not covered
90
+ //~| NOTE pattern `[Second(true), Second(false)]` not covered
85
91
[ ] => ( ) ,
86
92
[ _] => ( ) ,
87
93
[ Enum :: First , _] => ( ) ,
@@ -95,6 +101,7 @@ fn vectors_with_nested_enums() {
95
101
fn missing_nil ( ) {
96
102
match ( ( ) , false ) {
97
103
//~^ ERROR non-exhaustive patterns: `((), false)` not covered
104
+ //~| NOTE pattern `((), false)` not covered
98
105
( ( ) , true ) => ( )
99
106
}
100
107
}
0 commit comments