fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0492]: constants cannot refer to interior mutable data 2 --> $DIR/issue-17718-const-borrow.rs:4:39 3 | 4LL | const B: &'static UnsafeCell<usize> = &A; 5 | ^^ this borrow of an interior mutable value may end up in the final value 6 7error[E0492]: constants cannot refer to interior mutable data 8 --> $DIR/issue-17718-const-borrow.rs:9:39 9 | 10LL | const E: &'static UnsafeCell<usize> = &D.a; 11 | ^^^^ this borrow of an interior mutable value may end up in the final value 12 13error[E0492]: constants cannot refer to interior mutable data 14 --> $DIR/issue-17718-const-borrow.rs:11:23 15 | 16LL | const F: &'static C = &D; 17 | ^^ this borrow of an interior mutable value may end up in the final value 18 19error: aborting due to 3 previous errors 20 21For more information about this error, try `rustc --explain E0492`.