mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
24 lines
680 B
Plaintext
24 lines
680 B
Plaintext
warning: unreachable statement
|
|
--> $DIR/goto.rs:99:9
|
|
|
|
|
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
|
|
--> $DIR/goto.rs:89:8
|
|
|
|
|
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
|
|
|