1
- error[E0658]: raw mutable references are not allowed in constants
1
+ error[E0658]: raw mutable pointers are not allowed in constants
2
2
--> $DIR/const-address-of-mut.rs:3:32
3
3
|
4
4
LL | const A: () = { let mut x = 2; &raw mut x; };
@@ -7,7 +7,7 @@ LL | const A: () = { let mut x = 2; &raw mut x; };
7
7
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
8
8
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
9
9
10
- error[E0658]: raw mutable references are not allowed in statics
10
+ error[E0658]: raw mutable pointers are not allowed in statics
11
11
--> $DIR/const-address-of-mut.rs:5:33
12
12
|
13
13
LL | static B: () = { let mut x = 2; &raw mut x; };
@@ -16,7 +16,7 @@ LL | static B: () = { let mut x = 2; &raw mut x; };
16
16
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
17
17
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
18
18
19
- error[E0658]: raw mutable references are not allowed in statics
19
+ error[E0658]: raw mutable pointers are not allowed in statics
20
20
--> $DIR/const-address-of-mut.rs:7:37
21
21
|
22
22
LL | static mut C: () = { let mut x = 2; &raw mut x; };
@@ -25,7 +25,7 @@ LL | static mut C: () = { let mut x = 2; &raw mut x; };
25
25
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
26
26
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
27
27
28
- error[E0658]: raw mutable references are not allowed in constant functions
28
+ error[E0658]: raw mutable pointers are not allowed in constant functions
29
29
--> $DIR/const-address-of-mut.rs:11:13
30
30
|
31
31
LL | let y = &raw mut x;
0 commit comments