2020-04-29 03:00:22 -05:00
|
|
|
error: untyped pointers are not allowed in constant
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/raw_mutable_const.rs:5:1
|
2020-04-29 03:00:22 -05:00
|
|
|
|
|
|
|
|
LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-04-29 03:00:22 -05:00
|
|
|
|
|
|
|
warning: skipping const checks
|
|
|
|
|
|
|
|
|
help: skipping check that does not even have a feature gate
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/raw_mutable_const.rs:5:38
|
2020-04-29 03:00:22 -05:00
|
|
|
|
|
|
|
|
LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error; 1 warning emitted
|
|
|
|
|