blob: 3b0217060f78249efa56e2430e45f02a4b497103 [file] [log] [blame]
error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
--> $DIR/issue-17718-const-borrow.rs:14:39
|
LL | const B: &'static UnsafeCell<usize> = &A;
| ^^
error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
--> $DIR/issue-17718-const-borrow.rs:19:39
|
LL | const E: &'static UnsafeCell<usize> = &D.a;
| ^^^^
error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
--> $DIR/issue-17718-const-borrow.rs:21:23
|
LL | const F: &'static C = &D;
| ^^
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0492`.