@@ -4,17 +4,23 @@ error[E0019]: constant function contains unimplemented expression type
44LL | self.state = x;
55 | ^^^^^^^^^^^^^^
66
7- error[E0017 ]: references in constants may only refer to immutable values
7+ error[E0658 ]: references in constants may only refer to immutable values
88 --> $DIR/const_let_assign3.rs:16:5
99 |
1010LL | s.foo(3);
1111 | ^ constants require immutable values
12+ |
13+ = note: for more information, see https://github.com/rust-lang/rust/issues/57349
14+ = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
1215
13- error[E0017 ]: references in constants may only refer to immutable values
16+ error[E0658 ]: references in constants may only refer to immutable values
1417 --> $DIR/const_let_assign3.rs:22:13
1518 |
1619LL | let y = &mut x;
1720 | ^^^^^^ constants 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
1824
1925error[E0019]: constant contains unimplemented expression type
2026 --> $DIR/const_let_assign3.rs:24:5
@@ -24,5 +30,5 @@ LL | *y = 42;
2430
2531error: aborting due to 4 previous errors
2632
27- Some errors have detailed explanations: E0017, E0019 .
28- For more information about an error, try `rustc --explain E0017 `.
33+ Some errors have detailed explanations: E0019, E0658 .
34+ For more information about an error, try `rustc --explain E0019 `.
0 commit comments