@@ -5,7 +5,7 @@ LL | ARRAY[0] = 5;
55 | ^^^^^^^^^^^^
66 |
77 = 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
99note: `const` item defined here
1010 --> $DIR/lint-const-item-mutation.rs:26:1
1111 |
@@ -18,7 +18,7 @@ warning: attempting to modify a `const` item
1818LL | MY_STRUCT.field = false;
1919 | ^^^^^^^^^^^^^^^^^^^^^^^
2020 |
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
2222note: `const` item defined here
2323 --> $DIR/lint-const-item-mutation.rs:27:1
2424 |
@@ -31,7 +31,7 @@ warning: attempting to modify a `const` item
3131LL | MY_STRUCT.inner_array[0] = 'b';
3232 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3333 |
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
3535note: `const` item defined here
3636 --> $DIR/lint-const-item-mutation.rs:27:1
3737 |
@@ -91,7 +91,7 @@ warning: attempting to modify a `const` item
9191LL | MUTABLE2.msg = "wow";
9292 | ^^^^^^^^^^^^^^^^^^^^
9393 |
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
9595note: `const` item defined here
9696 --> $DIR/lint-const-item-mutation.rs:30:1
9797 |
0 commit comments