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