1 error[E0080]: erroneous constant used
2 --> $DIR/const_refers_to_static.rs:25:5
4 LL | MUTATE_INTERIOR_MUT;
5 | ^^^^^^^^^^^^^^^^^^^ referenced constant has errors
7 error[E0080]: erroneous constant used
8 --> $DIR/const_refers_to_static.rs:27:5
10 LL | READ_INTERIOR_MUT;
11 | ^^^^^^^^^^^^^^^^^ referenced constant has errors
13 error[E0080]: erroneous constant used
14 --> $DIR/const_refers_to_static.rs:29:5
17 | ^^^^^^^^ referenced constant has errors
19 warning: skipping const checks
21 help: skipping check that does not even have a feature gate
22 --> $DIR/const_refers_to_static.rs:13:5
24 LL | FOO.fetch_add(1, Ordering::Relaxed)
26 help: skipping check that does not even have a feature gate
27 --> $DIR/const_refers_to_static.rs:13:5
29 LL | FOO.fetch_add(1, Ordering::Relaxed)
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 help: skipping check that does not even have a feature gate
32 --> $DIR/const_refers_to_static.rs:18:17
34 LL | unsafe { *(&FOO as *const _ as *const usize) }
36 help: skipping check for `const_raw_ptr_deref` feature
37 --> $DIR/const_refers_to_static.rs:18:14
39 LL | unsafe { *(&FOO as *const _ as *const usize) }
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 help: skipping check that does not even have a feature gate
42 --> $DIR/const_refers_to_static.rs:22:32
44 LL | const READ_MUT: u32 = unsafe { MUTABLE };
46 help: skipping check that does not even have a feature gate
47 --> $DIR/const_refers_to_static.rs:22:32
49 LL | const READ_MUT: u32 = unsafe { MUTABLE };
52 error: aborting due to 3 previous errors; 1 warning emitted
54 For more information about this error, try `rustc --explain E0080`.