@@ -5,7 +5,7 @@ LL | ARRAY[0] = 5;
5
5
| ^^^^^^^^^^^^
6
6
|
7
7
= note: `#[warn(const_item_mutation)]` on by default
8
- = note: each usage of a `const` item creates a new temporary - the original `const` item will not be modified
8
+ = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified
9
9
note: `const` item defined here
10
10
--> $DIR/lint-const-item-mutation.rs:26:1
11
11
|
@@ -18,7 +18,7 @@ warning: attempting to modify a `const` item
18
18
LL | MY_STRUCT.field = false;
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^
20
20
|
21
- = note: each usage of a `const` item creates a new temporary - the original `const` item will not be modified
21
+ = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified
22
22
note: `const` item defined here
23
23
--> $DIR/lint-const-item-mutation.rs:27:1
24
24
|
@@ -31,7 +31,7 @@ warning: attempting to modify a `const` item
31
31
LL | MY_STRUCT.inner_array[0] = 'b';
32
32
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
33
|
34
- = note: each usage of a `const` item creates a new temporary - the original `const` item will not be modified
34
+ = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified
35
35
note: `const` item defined here
36
36
--> $DIR/lint-const-item-mutation.rs:27:1
37
37
|
@@ -91,7 +91,7 @@ warning: attempting to modify a `const` item
91
91
LL | MUTABLE2.msg = "wow";
92
92
| ^^^^^^^^^^^^^^^^^^^^
93
93
|
94
- = note: each usage of a `const` item creates a new temporary - the original `const` item will not be modified
94
+ = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified
95
95
note: `const` item defined here
96
96
--> $DIR/lint-const-item-mutation.rs:30:1
97
97
|
0 commit comments