Files
rust/tests/ui/asm/x86_64/goto-block-safe.stderr

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

15 lines
602 B
Plaintext
Raw Normal View History

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
|
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`.