@@ -23,22 +23,22 @@ fn main() {
23
23
assert_type_eq(x, &mut 0u8);
24
24
25
25
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
27
27
//~| WARN: this changes meaning in Rust 2024
28
28
assert_type_eq(x, 0u8);
29
29
30
30
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
32
32
//~| WARN: this changes meaning in Rust 2024
33
33
assert_type_eq(x, 0u8);
34
34
35
35
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
37
37
//~| WARN: this changes meaning in Rust 2024
38
38
assert_type_eq(x, &0u8);
39
39
40
40
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
42
42
//~| WARN: this changes meaning in Rust 2024
43
43
assert_type_eq(x, &0u8);
44
44
@@ -55,22 +55,22 @@ fn main() {
55
55
assert_type_eq(x, &0u8);
56
56
57
57
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
59
59
//~| WARN: this changes meaning in Rust 2024
60
60
assert_type_eq(x, 0u8);
61
61
62
62
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
64
64
//~| WARN: this changes meaning in Rust 2024
65
65
assert_type_eq(x, 0u8);
66
66
67
67
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
69
69
//~| WARN: this changes meaning in Rust 2024
70
70
assert_type_eq(x, 0u8);
71
71
72
72
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
74
74
//~| WARN: this changes meaning in Rust 2024
75
75
assert_type_eq(x, 0u8);
76
76
@@ -79,25 +79,25 @@ fn main() {
79
79
}
80
80
81
81
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
83
83
//~| WARN: this changes meaning in Rust 2024
84
84
assert_type_eq(x, 0u8);
85
85
}
86
86
87
87
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
89
89
//~| WARN: this changes meaning in Rust 2024
90
90
assert_type_eq(x, 0u8);
91
91
}
92
92
93
93
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
95
95
//~| WARN: this changes meaning in Rust 2024
96
96
assert_type_eq(x, 0u8);
97
97
}
98
98
99
99
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
101
101
//~| WARN: this changes meaning in Rust 2024
102
102
assert_type_eq(x, &mut 0u8);
103
103
}
@@ -109,20 +109,20 @@ fn main() {
109
109
}
110
110
111
111
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
113
113
//~| WARN: this changes meaning in Rust 2024
114
114
assert_type_eq(a, &0u32);
115
115
assert_type_eq(b, 0u32);
116
116
117
117
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
119
119
//~| WARN: this changes meaning in Rust 2024
120
120
assert_type_eq(a, 0u32);
121
121
assert_type_eq(b, &&0u32);
122
122
assert_type_eq(c, &&0u32);
123
123
124
124
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
126
126
//~| WARN: this changes meaning in Rust 2024
127
127
&(Struct { a: &Some(&0), b: &Some(&0), c: &Some(&0) })
128
128
{
@@ -135,7 +135,7 @@ fn main() {
135
135
// The two patterns are the same syntactically, but because they're defined in different
136
136
// editions they don't mean the same thing.
137
137
&(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
139
139
assert_type_eq(x, 0u32);
140
140
assert_type_eq(y, 0u32);
141
141
}
0 commit comments