1- error[E0658]: raw mutable references are not allowed in constants
1+ error[E0658]: raw mutable pointers are not allowed in constants
22 --> $DIR/const-address-of-mut.rs:3:32
33 |
44LL | const A: () = { let mut x = 2; &raw mut x; };
@@ -7,7 +7,7 @@ LL | const A: () = { let mut x = 2; &raw mut x; };
77 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
88 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
99
10- error[E0658]: raw mutable references are not allowed in statics
10+ error[E0658]: raw mutable pointers are not allowed in statics
1111 --> $DIR/const-address-of-mut.rs:5:33
1212 |
1313LL | static B: () = { let mut x = 2; &raw mut x; };
@@ -16,7 +16,7 @@ LL | static B: () = { let mut x = 2; &raw mut x; };
1616 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
1717 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
1818
19- error[E0658]: raw mutable references are not allowed in statics
19+ error[E0658]: raw mutable pointers are not allowed in statics
2020 --> $DIR/const-address-of-mut.rs:7:37
2121 |
2222LL | 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; };
2525 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
2626 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
2727
28- error[E0658]: raw mutable references are not allowed in constant functions
28+ error[E0658]: raw mutable pointers are not allowed in constant functions
2929 --> $DIR/const-address-of-mut.rs:11:13
3030 |
3131LL | let y = &raw mut x;
0 commit comments