fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0492]: constants cannot refer to interior mutable data 2 --> $DIR/E0492.rs:4:33 3 | 4LL | const B: &'static AtomicUsize = &A; 5 | ^^ this borrow of an interior mutable value may end up in the final value 6 7error[E0492]: statics cannot refer to interior mutable data 8 --> $DIR/E0492.rs:5:34 9 | 10LL | static C: &'static AtomicUsize = &A; 11 | ^^ this borrow of an interior mutable value may end up in the final value 12 | 13 = help: to fix this, the value can be extracted to a separate `static` item and then referenced 14 15error: aborting due to 2 previous errors 16 17For more information about this error, try `rustc --explain E0492`.