summary refs log tree commit diff
path: root/tests/ui/asm/x86_64/goto-block-safe.stderr
blob: 49818db7484e50df895a7be7bcc0f95f765dc0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0133]: call to unsafe function `unreachable_unchecked` is unsafe and requires unsafe function or block
  --> $DIR/goto-block-safe.rs:14: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`.