@@ -4,17 +4,23 @@ error[E0019]: constant function contains unimplemented expression type
4
4
LL | self.state = x;
5
5
| ^^^^^^^^^^^^^^
6
6
7
- error[E0017 ]: references in constants may only refer to immutable values
7
+ error[E0658 ]: references in constants may only refer to immutable values
8
8
--> $DIR/const_let_assign3.rs:16:5
9
9
|
10
10
LL | s.foo(3);
11
11
| ^ 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
12
15
13
- error[E0017 ]: references in constants may only refer to immutable values
16
+ error[E0658 ]: references in constants may only refer to immutable values
14
17
--> $DIR/const_let_assign3.rs:22:13
15
18
|
16
19
LL | let y = &mut x;
17
20
| ^^^^^^ 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
18
24
19
25
error[E0019]: constant contains unimplemented expression type
20
26
--> $DIR/const_let_assign3.rs:24:5
@@ -24,5 +30,5 @@ LL | *y = 42;
24
30
25
31
error: aborting due to 4 previous errors
26
32
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