]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/const_refers_to_static.stderr
Stabilize File::options()
[rust.git] / src / test / ui / consts / miri_unleashed / const_refers_to_static.stderr
1 error[E0080]: erroneous constant used
2   --> $DIR/const_refers_to_static.rs:25:5
3    |
4 LL |     MUTATE_INTERIOR_MUT;
5    |     ^^^^^^^^^^^^^^^^^^^ referenced constant has errors
6
7 error[E0080]: erroneous constant used
8   --> $DIR/const_refers_to_static.rs:27:5
9    |
10 LL |     READ_INTERIOR_MUT;
11    |     ^^^^^^^^^^^^^^^^^ referenced constant has errors
12
13 error[E0080]: erroneous constant used
14   --> $DIR/const_refers_to_static.rs:29:5
15    |
16 LL |     READ_MUT;
17    |     ^^^^^^^^ referenced constant has errors
18
19 warning: skipping const checks
20    |
21 help: skipping check that does not even have a feature gate
22   --> $DIR/const_refers_to_static.rs:13:5
23    |
24 LL |     FOO.fetch_add(1, Ordering::Relaxed)
25    |     ^^^
26 help: skipping check that does not even have a feature gate
27   --> $DIR/const_refers_to_static.rs:13:5
28    |
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
33    |
34 LL |     unsafe { *(&FOO as *const _ as *const usize) }
35    |                 ^^^
36 help: skipping check for `const_raw_ptr_deref` feature
37   --> $DIR/const_refers_to_static.rs:18:14
38    |
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
43    |
44 LL | const READ_MUT: u32 = unsafe { MUTABLE };
45    |                                ^^^^^^^
46 help: skipping check that does not even have a feature gate
47   --> $DIR/const_refers_to_static.rs:22:32
48    |
49 LL | const READ_MUT: u32 = unsafe { MUTABLE };
50    |                                ^^^^^^^
51
52 error: aborting due to 3 previous errors; 1 warning emitted
53
54 For more information about this error, try `rustc --explain E0080`.