|
1 | | -error[E0017]: references in constants may only refer to immutable values |
| 1 | +error[E0658]: references in constants may only refer to immutable values |
2 | 2 | --> $DIR/E0017.rs:5:30 |
3 | 3 | | |
4 | 4 | LL | const CR: &'static mut i32 = &mut C; |
5 | 5 | | ^^^^^^ constants require immutable values |
| 6 | + | |
| 7 | + = note: for more information, see https://github.com/rust-lang/rust/issues/57349 |
| 8 | + = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable |
6 | 9 |
|
7 | 10 | error[E0019]: static contains unimplemented expression type |
8 | 11 | --> $DIR/E0017.rs:6:39 |
9 | 12 | | |
10 | 13 | LL | static STATIC_REF: &'static mut i32 = &mut X; |
11 | 14 | | ^^^^^^ |
12 | 15 |
|
13 | | -error[E0017]: references in statics may only refer to immutable values |
| 16 | +error[E0658]: references in statics may only refer to immutable values |
14 | 17 | --> $DIR/E0017.rs:6:39 |
15 | 18 | | |
16 | 19 | LL | static STATIC_REF: &'static mut i32 = &mut X; |
17 | 20 | | ^^^^^^ statics require immutable values |
| 21 | + | |
| 22 | + = note: for more information, see https://github.com/rust-lang/rust/issues/57349 |
| 23 | + = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable |
18 | 24 |
|
19 | 25 | error[E0596]: cannot borrow immutable static item `X` as mutable |
20 | 26 | --> $DIR/E0017.rs:6:39 |
21 | 27 | | |
22 | 28 | LL | static STATIC_REF: &'static mut i32 = &mut X; |
23 | 29 | | ^^^^^^ cannot borrow as mutable |
24 | 30 |
|
25 | | -error[E0017]: references in statics may only refer to immutable values |
| 31 | +error[E0658]: references in statics may only refer to immutable values |
26 | 32 | --> $DIR/E0017.rs:9:38 |
27 | 33 | | |
28 | 34 | LL | static CONST_REF: &'static mut i32 = &mut C; |
29 | 35 | | ^^^^^^ statics require immutable values |
| 36 | + | |
| 37 | + = note: for more information, see https://github.com/rust-lang/rust/issues/57349 |
| 38 | + = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable |
30 | 39 |
|
31 | | -error[E0017]: references in statics may only refer to immutable values |
| 40 | +error[E0658]: references in statics may only refer to immutable values |
32 | 41 | --> $DIR/E0017.rs:10:52 |
33 | 42 | | |
34 | 43 | LL | static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M }; |
35 | 44 | | ^^^^^^ statics require immutable values |
| 45 | + | |
| 46 | + = note: for more information, see https://github.com/rust-lang/rust/issues/57349 |
| 47 | + = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable |
36 | 48 |
|
37 | 49 | error: aborting due to 6 previous errors |
38 | 50 |
|
39 | | -Some errors have detailed explanations: E0017, E0019, E0596. |
40 | | -For more information about an error, try `rustc --explain E0017`. |
| 51 | +Some errors have detailed explanations: E0019, E0596, E0658. |
| 52 | +For more information about an error, try `rustc --explain E0019`. |
0 commit comments