1 error[E0080]: evaluation of constant value failed
2 --> $DIR/mut_ref_in_final_dynamic_check.rs:14:10
4 LL | Some(&mut *(42 as *mut i32))
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 | 0x2a is not a valid pointer
8 | inside `helper` at $DIR/mut_ref_in_final_dynamic_check.rs:14:10
10 LL | const A: Option<&mut i32> = helper();
11 | -------- inside `A` at $DIR/mut_ref_in_final_dynamic_check.rs:19:29
13 error: encountered dangling pointer in final constant
14 --> $DIR/mut_ref_in_final_dynamic_check.rs:26:1
16 LL | const B: Option<&mut i32> = helper2();
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0080`.