@@ -101,7 +101,7 @@ LL | if let Blah::A(_, x, y) | Blah::B(x, y) = Blah::A(1, 1, 2) {
101
101
| | expected `usize`, found `isize`
102
102
| first introduced with type `usize` here
103
103
|
104
- = note: in the same arm, a binding must have the same type in all alternatives
104
+ = note: a binding must have the same type in all alternatives
105
105
106
106
error[E0308]: mismatched types
107
107
--> $DIR/or-patterns-binding-type-mismatch.rs:38:47
@@ -112,7 +112,7 @@ LL | if let Some(Blah::A(_, x, y) | Blah::B(x, y)) = Some(Blah::A(1, 1, 2))
112
112
| | expected `usize`, found `isize`
113
113
| first introduced with type `usize` here
114
114
|
115
- = note: in the same arm, a binding must have the same type in all alternatives
115
+ = note: a binding must have the same type in all alternatives
116
116
117
117
error[E0308]: mismatched types
118
118
--> $DIR/or-patterns-binding-type-mismatch.rs:42:22
@@ -123,7 +123,7 @@ LL | if let (x, y) | (y, x) = (0u8, 1u16) {
123
123
| | expected `u16`, found `u8`
124
124
| first introduced with type `u16` here
125
125
|
126
- = note: in the same arm, a binding must have the same type in all alternatives
126
+ = note: a binding must have the same type in all alternatives
127
127
128
128
error[E0308]: mismatched types
129
129
--> $DIR/or-patterns-binding-type-mismatch.rs:42:25
@@ -134,7 +134,7 @@ LL | if let (x, y) | (y, x) = (0u8, 1u16) {
134
134
| | expected `u8`, found `u16`
135
135
| first introduced with type `u8` here
136
136
|
137
- = note: in the same arm, a binding must have the same type in all alternatives
137
+ = note: a binding must have the same type in all alternatives
138
138
139
139
error[E0308]: mismatched types
140
140
--> $DIR/or-patterns-binding-type-mismatch.rs:47:44
@@ -147,7 +147,7 @@ LL | if let Some((x, Some((y, z)))) | Some((y, Some((x, z) | (z, x))))
147
147
LL | = Some((0u8, Some((1u16, 2u32))))
148
148
| ------------------------------- this expression has type `std::option::Option<(u8, std::option::Option<(u16, u32)>)>`
149
149
|
150
- = note: in the same arm, a binding must have the same type in all alternatives
150
+ = note: a binding must have the same type in all alternatives
151
151
152
152
error[E0308]: mismatched types
153
153
--> $DIR/or-patterns-binding-type-mismatch.rs:47:53
@@ -160,7 +160,7 @@ LL | if let Some((x, Some((y, z)))) | Some((y, Some((x, z) | (z, x))))
160
160
LL | = Some((0u8, Some((1u16, 2u32))))
161
161
| ------------------------------- this expression has type `std::option::Option<(u8, std::option::Option<(u16, u32)>)>`
162
162
|
163
- = note: in the same arm, a binding must have the same type in all alternatives
163
+ = note: a binding must have the same type in all alternatives
164
164
165
165
error[E0308]: mismatched types
166
166
--> $DIR/or-patterns-binding-type-mismatch.rs:47:62
@@ -173,7 +173,7 @@ LL | if let Some((x, Some((y, z)))) | Some((y, Some((x, z) | (z, x))))
173
173
LL | = Some((0u8, Some((1u16, 2u32))))
174
174
| ------------------------------- this expression has type `std::option::Option<(u8, std::option::Option<(u16, u32)>)>`
175
175
|
176
- = note: in the same arm, a binding must have the same type in all alternatives
176
+ = note: a binding must have the same type in all alternatives
177
177
178
178
error[E0308]: mismatched types
179
179
--> $DIR/or-patterns-binding-type-mismatch.rs:47:65
@@ -184,7 +184,7 @@ LL | if let Some((x, Some((y, z)))) | Some((y, Some((x, z) | (z, x))))
184
184
LL | = Some((0u8, Some((1u16, 2u32))))
185
185
| ------------------------------- this expression has type `std::option::Option<(u8, std::option::Option<(u16, u32)>)>`
186
186
|
187
- = note: in the same arm, a binding must have the same type in all alternatives
187
+ = note: a binding must have the same type in all alternatives
188
188
189
189
error[E0308]: mismatched types
190
190
--> $DIR/or-patterns-binding-type-mismatch.rs:55:39
0 commit comments