2024-10-11 11:54:16 +01:00
|
|
|
error[E0133]: call to unsafe function `unreachable_unchecked` is unsafe and requires unsafe function or block
|
2024-12-02 21:20:12 +00:00
|
|
|
--> $DIR/goto-block-safe.rs:13:17
|
2024-10-11 11:54:16 +01:00
|
|
|
|
|
|
|
|
|
LL | unsafe {
|
|
|
|
|
| ------ items do not inherit unsafety from separate enclosing items
|
|
|
|
|
...
|
|
|
|
|
LL | core::hint::unreachable_unchecked();
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|
|
|
|
|
|
|
|
|
|
|
= note: consult the function's documentation for information on how to avoid undefined behavior
|
|
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0133`.
|