rust/tests/ui/const-generics/issues/issue-100313.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
648 B
Plaintext
Raw Normal View History

2022-08-10 02:58:53 -05:00
error[E0080]: evaluation of constant value failed
--> $DIR/issue-100313.rs:10:13
|
LL | *(B as *const bool as *mut bool) = false;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ writing to alloc7 which is read-only
|
note: inside `T::<&true>::set_false`
--> $DIR/issue-100313.rs:10:13
|
2022-08-10 02:58:53 -05:00
LL | *(B as *const bool as *mut bool) = false;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `_`
--> $DIR/issue-100313.rs:18:5
|
2022-08-10 02:58:53 -05:00
LL | x.set_false();
| ^^^^^^^^^^^^^
2022-08-10 02:58:53 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.