mirror of https://github.com/rust-lang/rust
21 lines
648 B
Plaintext
21 lines
648 B
Plaintext
error[E0080]: evaluation of constant value failed
|
|
--> $DIR/issue-100313.rs:9:13
|
|
|
|
|
LL | *(B as *const bool as *mut bool) = false;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ writing to ALLOC0 which is read-only
|
|
|
|
|
note: inside `T::<&true>::set_false`
|
|
--> $DIR/issue-100313.rs:9:13
|
|
|
|
|
LL | *(B as *const bool as *mut bool) = false;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
note: inside `_`
|
|
--> $DIR/issue-100313.rs:17:5
|
|
|
|
|
LL | x.set_false();
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|