@@ -19,6 +19,7 @@ struct Foo {
1919fn struct_with_a_nested_enum_and_vector ( ) {
2020 match ( Foo { first : true , second : None } ) {
2121//~^ ERROR non-exhaustive patterns: `Foo { first: false, second: Some([_, _, _, _]) }` not covered
22+ //~| NOTE pattern `Foo { first: false, second: Some([_, _, _, _]) }` not covered
2223 Foo { first : true , second : None } => ( ) ,
2324 Foo { first : true , second : Some ( _) } => ( ) ,
2425 Foo { first : false , second : None } => ( ) ,
@@ -35,6 +36,7 @@ enum Color {
3536fn enum_with_single_missing_variant ( ) {
3637 match Color :: Red {
3738 //~^ ERROR non-exhaustive patterns: `Red` not covered
39+ //~| NOTE pattern `Red` not covered
3840 Color :: CustomRGBA { .. } => ( ) ,
3941 Color :: Green => ( )
4042 }
@@ -47,6 +49,7 @@ enum Direction {
4749fn enum_with_multiple_missing_variants ( ) {
4850 match Direction :: North {
4951 //~^ ERROR non-exhaustive patterns: `East`, `South` and `West` not covered
52+ //~| NOTE patterns `East`, `South` and `West` not covered
5053 Direction :: North => ( )
5154 }
5255}
@@ -58,6 +61,7 @@ enum ExcessiveEnum {
5861fn enum_with_excessive_missing_variants ( ) {
5962 match ExcessiveEnum :: First {
6063 //~^ ERROR `Second`, `Third`, `Fourth` and 8 more not covered
64+ //~| NOTE patterns `Second`, `Third`, `Fourth` and 8 more not covered
6165
6266 ExcessiveEnum :: First => ( )
6367 }
@@ -66,6 +70,7 @@ fn enum_with_excessive_missing_variants() {
6670fn enum_struct_variant ( ) {
6771 match Color :: Red {
6872 //~^ ERROR non-exhaustive patterns: `CustomRGBA { a: true, .. }` not covered
73+ //~| NOTE pattern `CustomRGBA { a: true, .. }` not covered
6974 Color :: Red => ( ) ,
7075 Color :: Green => ( ) ,
7176 Color :: CustomRGBA { a : false , r : _, g : _, b : 0 } => ( ) ,
@@ -82,6 +87,7 @@ fn vectors_with_nested_enums() {
8287 let x: & ' static [ Enum ] = & [ Enum :: First , Enum :: Second ( false ) ] ;
8388 match * x {
8489 //~^ ERROR non-exhaustive patterns: `[Second(true), Second(false)]` not covered
90+ //~| NOTE pattern `[Second(true), Second(false)]` not covered
8591 [ ] => ( ) ,
8692 [ _] => ( ) ,
8793 [ Enum :: First , _] => ( ) ,
@@ -95,6 +101,7 @@ fn vectors_with_nested_enums() {
95101fn missing_nil ( ) {
96102 match ( ( ) , false ) {
97103 //~^ ERROR non-exhaustive patterns: `((), false)` not covered
104+ //~| NOTE pattern `((), false)` not covered
98105 ( ( ) , true ) => ( )
99106 }
100107}
0 commit comments