@@ -24,7 +24,7 @@ LL | fn _f1(&mut _a: u32) {}
24
24
|
25
25
= note: expected type `u32`
26
26
found mutable reference `&mut _`
27
- note: to declare a mutable parameter use `mut variable_name` : `mut _a`
27
+ note: to declare a mutable parameter use: `mut _a`
28
28
--> $DIR/ref-pat-suggestions.rs:4:8
29
29
|
30
30
LL | fn _f1(&mut _a: u32) {}
@@ -127,7 +127,7 @@ LL | let _: fn(u32) = |&mut _a| ();
127
127
|
128
128
= note: expected type `u32`
129
129
found mutable reference `&mut _`
130
- note: to declare a mutable parameter use `mut variable_name` : `mut _a`
130
+ note: to declare a mutable parameter use: `mut _a`
131
131
--> $DIR/ref-pat-suggestions.rs:12:23
132
132
|
133
133
LL | let _: fn(u32) = |&mut _a| ();
@@ -232,7 +232,7 @@ LL | let _ = |&mut _a: u32| ();
232
232
|
233
233
= note: expected type `u32`
234
234
found mutable reference `&mut _`
235
- note: to declare a mutable parameter use `mut variable_name` : `mut _a`
235
+ note: to declare a mutable parameter use: `mut _a`
236
236
--> $DIR/ref-pat-suggestions.rs:19:14
237
237
|
238
238
LL | let _ = |&mut _a: u32| ();
@@ -314,7 +314,7 @@ LL | let &mut _a = 0;
314
314
| ^^^^^^^ - this expression has type `{integer}`
315
315
| |
316
316
| expected integer, found `&mut _`
317
- | help: to declare a mutable variable use `mut variable_name` : `mut _a`
317
+ | help: to declare a mutable variable use: `mut _a`
318
318
|
319
319
= note: expected type `{integer}`
320
320
found mutable reference `&mut _`
@@ -329,7 +329,7 @@ LL | let S(&mut _b) = S(0);
329
329
|
330
330
= note: expected type `u8`
331
331
found mutable reference `&mut _`
332
- note: to declare a mutable binding use `mut variable_name` : `mut _b`
332
+ note: to declare a mutable binding use: `mut _b`
333
333
--> $DIR/ref-pat-suggestions.rs:30:15
334
334
|
335
335
LL | let S(&mut _b) = S(0);
@@ -350,7 +350,7 @@ LL | let (&mut _c,) = (0,);
350
350
|
351
351
= note: expected type `{integer}`
352
352
found mutable reference `&mut _`
353
- note: to declare a mutable binding use `mut variable_name` : `mut _c`
353
+ note: to declare a mutable binding use: `mut _c`
354
354
--> $DIR/ref-pat-suggestions.rs:31:14
355
355
|
356
356
LL | let (&mut _c,) = (0,);
@@ -371,7 +371,7 @@ LL | &mut _d => {}
371
371
|
372
372
= note: expected type `{integer}`
373
373
found mutable reference `&mut _`
374
- note: to declare a mutable binding use `mut variable_name` : `mut _d`
374
+ note: to declare a mutable binding use: `mut _d`
375
375
--> $DIR/ref-pat-suggestions.rs:34:13
376
376
|
377
377
LL | &mut _d => {}
0 commit comments