@@ -23,22 +23,22 @@ fn main() {
2323 assert_type_eq(x, &mut 0u8);
2424
2525 let &Foo(mut x) = &Foo(0);
26- //~^ ERROR: patterns are not allowed to reset the default binding mode
26+ //~^ ERROR: pattern uses features incompatible with edition 2024
2727 //~| WARN: this changes meaning in Rust 2024
2828 assert_type_eq(x, 0u8);
2929
3030 let &mut Foo(mut x) = &mut Foo(0);
31- //~^ ERROR: patterns are not allowed to reset the default binding mode
31+ //~^ ERROR: pattern uses features incompatible with edition 2024
3232 //~| WARN: this changes meaning in Rust 2024
3333 assert_type_eq(x, 0u8);
3434
3535 let &Foo(ref x) = &Foo(0);
36- //~^ ERROR: patterns are not allowed to reset the default binding mode
36+ //~^ ERROR: pattern uses features incompatible with edition 2024
3737 //~| WARN: this changes meaning in Rust 2024
3838 assert_type_eq(x, &0u8);
3939
4040 let &mut Foo(ref x) = &mut Foo(0);
41- //~^ ERROR: patterns are not allowed to reset the default binding mode
41+ //~^ ERROR: pattern uses features incompatible with edition 2024
4242 //~| WARN: this changes meaning in Rust 2024
4343 assert_type_eq(x, &0u8);
4444
@@ -55,22 +55,22 @@ fn main() {
5555 assert_type_eq(x, &0u8);
5656
5757 let &Foo(&x) = &Foo(&0);
58- //~^ ERROR: patterns are not allowed to reset the default binding mode
58+ //~^ ERROR: pattern uses features incompatible with edition 2024
5959 //~| WARN: this changes meaning in Rust 2024
6060 assert_type_eq(x, 0u8);
6161
6262 let &Foo(&mut x) = &Foo(&mut 0);
63- //~^ ERROR: patterns are not allowed to reset the default binding mode
63+ //~^ ERROR: pattern uses features incompatible with edition 2024
6464 //~| WARN: this changes meaning in Rust 2024
6565 assert_type_eq(x, 0u8);
6666
6767 let &mut Foo(&x) = &mut Foo(&0);
68- //~^ ERROR: patterns are not allowed to reset the default binding mode
68+ //~^ ERROR: pattern uses features incompatible with edition 2024
6969 //~| WARN: this changes meaning in Rust 2024
7070 assert_type_eq(x, 0u8);
7171
7272 let &mut Foo(&mut x) = &mut Foo(&mut 0);
73- //~^ ERROR: patterns are not allowed to reset the default binding mode
73+ //~^ ERROR: pattern uses features incompatible with edition 2024
7474 //~| WARN: this changes meaning in Rust 2024
7575 assert_type_eq(x, 0u8);
7676
@@ -79,25 +79,25 @@ fn main() {
7979 }
8080
8181 if let &&&&&Some(&x) = &&&&&Some(&0u8) {
82- //~^ ERROR: patterns are not allowed to reset the default binding mode
82+ //~^ ERROR: pattern uses features incompatible with edition 2024
8383 //~| WARN: this changes meaning in Rust 2024
8484 assert_type_eq(x, 0u8);
8585 }
8686
8787 if let &&&&&Some(&mut x) = &&&&&Some(&mut 0u8) {
88- //~^ ERROR: patterns are not allowed to reset the default binding mode
88+ //~^ ERROR: pattern uses features incompatible with edition 2024
8989 //~| WARN: this changes meaning in Rust 2024
9090 assert_type_eq(x, 0u8);
9191 }
9292
9393 if let &&&&&mut Some(&x) = &&&&&mut Some(&0u8) {
94- //~^ ERROR: patterns are not allowed to reset the default binding mode
94+ //~^ ERROR: pattern uses features incompatible with edition 2024
9595 //~| WARN: this changes meaning in Rust 2024
9696 assert_type_eq(x, 0u8);
9797 }
9898
9999 if let &mut Some(&mut Some(&mut Some(ref mut x))) = &mut Some(&mut Some(&mut Some(0u8))) {
100- //~^ ERROR: patterns are not allowed to reset the default binding mode
100+ //~^ ERROR: pattern uses features incompatible with edition 2024
101101 //~| WARN: this changes meaning in Rust 2024
102102 assert_type_eq(x, &mut 0u8);
103103 }
@@ -109,20 +109,20 @@ fn main() {
109109 }
110110
111111 let &Struct { ref a, mut b, ref c } = &Struct { a: 0, b: 0, c: 0 };
112- //~^ ERROR: patterns are not allowed to reset the default binding mode
112+ //~^ ERROR: pattern uses features incompatible with edition 2024
113113 //~| WARN: this changes meaning in Rust 2024
114114 assert_type_eq(a, &0u32);
115115 assert_type_eq(b, 0u32);
116116
117117 let &Struct { a: &a, ref b, ref c } = &Struct { a: &0, b: &0, c: &0 };
118- //~^ ERROR: patterns are not allowed to reset the default binding mode
118+ //~^ ERROR: pattern uses features incompatible with edition 2024
119119 //~| WARN: this changes meaning in Rust 2024
120120 assert_type_eq(a, 0u32);
121121 assert_type_eq(b, &&0u32);
122122 assert_type_eq(c, &&0u32);
123123
124124 if let &Struct { a: &Some(a), b: &Some(&b), c: &Some(ref c) } =
125- //~^ ERROR: patterns are not allowed to reset the default binding mode
125+ //~^ ERROR: pattern uses features incompatible with edition 2024
126126 //~| WARN: this changes meaning in Rust 2024
127127 &(Struct { a: &Some(&0), b: &Some(&0), c: &Some(&0) })
128128 {
@@ -135,7 +135,7 @@ fn main() {
135135 // The two patterns are the same syntactically, but because they're defined in different
136136 // editions they don't mean the same thing.
137137 &(Some(mut x), migration_lint_macros::mixed_edition_pat!(y)) => {
138- //~^ ERROR: patterns are not allowed to reset the default binding mode
138+ //~^ ERROR: pattern uses features incompatible with edition 2024
139139 assert_type_eq(x, 0u32);
140140 assert_type_eq(y, 0u32);
141141 }
0 commit comments