1
1
error[E0308]: mismatched types
2
- --> $DIR/pattern-errors.rs:23 :17
2
+ --> $DIR/pattern-errors.rs:26 :17
3
3
|
4
4
LL | if let Some(&mut Some(&_)) = &Some(&Some(0)) {
5
5
| ^^^^^
@@ -11,7 +11,7 @@ LL | if let Some(&Some(&_)) = &Some(&Some(0)) {
11
11
| ~
12
12
13
13
error[E0308]: mismatched types
14
- --> $DIR/pattern-errors.rs:26 :23
14
+ --> $DIR/pattern-errors.rs:30 :23
15
15
|
16
16
LL | if let Some(&Some(&mut _)) = &Some(&mut Some(0)) {
17
17
| ^^^^^
@@ -23,7 +23,7 @@ LL | if let Some(&Some(&_)) = &Some(&mut Some(0)) {
23
23
| ~
24
24
25
25
error[E0308]: mismatched types
26
- --> $DIR/pattern-errors.rs:29 :23
26
+ --> $DIR/pattern-errors.rs:34 :23
27
27
|
28
28
LL | if let Some(&Some(&mut _)) = &mut Some(&Some(0)) {
29
29
| ^^^^^
@@ -35,7 +35,7 @@ LL | if let Some(&Some(&_)) = &mut Some(&Some(0)) {
35
35
| ~
36
36
37
37
error[E0308]: mismatched types
38
- --> $DIR/pattern-errors.rs:32 :28
38
+ --> $DIR/pattern-errors.rs:38 :28
39
39
|
40
40
LL | if let Some(&Some(Some(&mut _))) = &Some(Some(&mut Some(0))) {
41
41
| ^^^^^
@@ -47,7 +47,7 @@ LL | if let Some(&Some(Some(&_))) = &Some(Some(&mut Some(0))) {
47
47
| ~
48
48
49
49
error[E0308]: mismatched types
50
- --> $DIR/pattern-errors.rs:35 :17
50
+ --> $DIR/pattern-errors.rs:42 :17
51
51
|
52
52
LL | if let Some(&mut Some(x)) = &Some(Some(0)) {
53
53
| ^^^^^
@@ -59,7 +59,7 @@ LL | if let Some(&Some(x)) = &Some(Some(0)) {
59
59
| ~
60
60
61
61
error[E0308]: mismatched types
62
- --> $DIR/pattern-errors.rs:41 :11
62
+ --> $DIR/pattern-errors.rs:49 :11
63
63
|
64
64
LL | let &[&mut x] = &&mut [0];
65
65
| ^^^^^
@@ -71,7 +71,7 @@ LL | let &[&x] = &&mut [0];
71
71
| ~
72
72
73
73
error[E0308]: mismatched types
74
- --> $DIR/pattern-errors.rs:46 :11
74
+ --> $DIR/pattern-errors.rs:54 :11
75
75
|
76
76
LL | let &[&mut x] = &mut &mut [0];
77
77
| ^^^^^
@@ -83,7 +83,7 @@ LL | let &[&x] = &mut &mut [0];
83
83
| ~
84
84
85
85
error[E0308]: mismatched types
86
- --> $DIR/pattern-errors.rs:51 :11
86
+ --> $DIR/pattern-errors.rs:59 :11
87
87
|
88
88
LL | let &[&mut ref x] = &&mut [0];
89
89
| ^^^^^
@@ -95,7 +95,7 @@ LL | let &[&ref x] = &&mut [0];
95
95
| ~
96
96
97
97
error[E0308]: mismatched types
98
- --> $DIR/pattern-errors.rs:56 :11
98
+ --> $DIR/pattern-errors.rs:64 :11
99
99
|
100
100
LL | let &[&mut ref x] = &mut &mut [0];
101
101
| ^^^^^
@@ -107,7 +107,7 @@ LL | let &[&ref x] = &mut &mut [0];
107
107
| ~
108
108
109
109
error[E0308]: mismatched types
110
- --> $DIR/pattern-errors.rs:61 :11
110
+ --> $DIR/pattern-errors.rs:69 :11
111
111
|
112
112
LL | let &[&mut mut x] = &&mut [0];
113
113
| ^^^^^
@@ -119,7 +119,7 @@ LL | let &[&mut x] = &&mut [0];
119
119
| ~
120
120
121
121
error[E0308]: mismatched types
122
- --> $DIR/pattern-errors.rs:66 :11
122
+ --> $DIR/pattern-errors.rs:74 :11
123
123
|
124
124
LL | let &[&mut mut x] = &mut &mut [0];
125
125
| ^^^^^
@@ -131,7 +131,7 @@ LL | let &[&mut x] = &mut &mut [0];
131
131
| ~
132
132
133
133
error[E0658]: binding cannot be both mutable and by-reference
134
- --> $DIR/pattern-errors.rs:73 :12
134
+ --> $DIR/pattern-errors.rs:81 :12
135
135
|
136
136
LL | let [&(mut x)] = &[&0];
137
137
| ^^^^
@@ -141,7 +141,7 @@ LL | let [&(mut x)] = &[&0];
141
141
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
142
142
143
143
error[E0658]: binding cannot be both mutable and by-reference
144
- --> $DIR/pattern-errors.rs:77 :12
144
+ --> $DIR/pattern-errors.rs:85 :12
145
145
|
146
146
LL | let [&(mut x)] = &mut [&0];
147
147
| ^^^^
@@ -151,7 +151,7 @@ LL | let [&(mut x)] = &mut [&0];
151
151
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
152
152
153
153
error[E0308]: mismatched types
154
- --> $DIR/pattern-errors.rs:83 :11
154
+ --> $DIR/pattern-errors.rs:91 :11
155
155
|
156
156
LL | let [&&mut x] = &[&mut 0];
157
157
| ^^^^^
@@ -163,7 +163,7 @@ LL | let [&&x] = &[&mut 0];
163
163
| ~
164
164
165
165
error[E0308]: mismatched types
166
- --> $DIR/pattern-errors.rs:88 :11
166
+ --> $DIR/pattern-errors.rs:96 :11
167
167
|
168
168
LL | let [&&mut x] = &mut [&mut 0];
169
169
| ^^^^^
@@ -175,7 +175,7 @@ LL | let [&&x] = &mut [&mut 0];
175
175
| ~
176
176
177
177
error[E0308]: mismatched types
178
- --> $DIR/pattern-errors.rs:93 :11
178
+ --> $DIR/pattern-errors.rs:101 :11
179
179
|
180
180
LL | let [&&mut ref x] = &[&mut 0];
181
181
| ^^^^^
@@ -187,7 +187,7 @@ LL | let [&&ref x] = &[&mut 0];
187
187
| ~
188
188
189
189
error[E0308]: mismatched types
190
- --> $DIR/pattern-errors.rs:98 :11
190
+ --> $DIR/pattern-errors.rs:106 :11
191
191
|
192
192
LL | let [&&mut ref x] = &mut [&mut 0];
193
193
| ^^^^^
@@ -199,7 +199,7 @@ LL | let [&&ref x] = &mut [&mut 0];
199
199
| ~
200
200
201
201
error[E0308]: mismatched types
202
- --> $DIR/pattern-errors.rs:103 :11
202
+ --> $DIR/pattern-errors.rs:111 :11
203
203
|
204
204
LL | let [&&mut mut x] = &[&mut 0];
205
205
| ^^^^^
@@ -211,7 +211,7 @@ LL | let [&&mut x] = &[&mut 0];
211
211
| ~
212
212
213
213
error[E0308]: mismatched types
214
- --> $DIR/pattern-errors.rs:108 :11
214
+ --> $DIR/pattern-errors.rs:116 :11
215
215
|
216
216
LL | let [&&mut mut x] = &mut [&mut 0];
217
217
| ^^^^^
0 commit comments