1 error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
2 --> $DIR/const-address-of-interior-mut.rs:5:39
4 LL | const A: () = { let x = Cell::new(2); &raw const x; };
7 error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
8 --> $DIR/const-address-of-interior-mut.rs:7:40
10 LL | static B: () = { let x = Cell::new(2); &raw const x; };
13 error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
14 --> $DIR/const-address-of-interior-mut.rs:9:44
16 LL | static mut C: () = { let x = Cell::new(2); &raw const x; };
19 error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
20 --> $DIR/const-address-of-interior-mut.rs:13:13
22 LL | let y = &raw const x;
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0492`.