2023-12-27 16:57:17 -06:00
|
|
|
warning: unreachable statement
|
2024-02-27 05:57:52 -06:00
|
|
|
--> $DIR/goto.rs:97:9
|
2023-12-27 16:57:17 -06:00
|
|
|
|
|
|
|
|
LL | / asm!(
|
|
|
|
LL | | "jmp {}",
|
|
|
|
LL | | label {
|
|
|
|
LL | | return;
|
|
|
|
LL | | },
|
|
|
|
LL | | options(noreturn)
|
|
|
|
LL | | );
|
|
|
|
| |_________- any code following this expression is unreachable
|
|
|
|
LL | unreachable!();
|
|
|
|
| ^^^^^^^^^^^^^^ unreachable statement
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2024-02-27 05:57:52 -06:00
|
|
|
--> $DIR/goto.rs:87:8
|
2023-12-27 16:57:17 -06:00
|
|
|
|
|
|
|
|
LL | #[warn(unreachable_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: this warning originates in the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|