Strange unreachable
warning in Future
#60394
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code:
And when build with
cargo build
, It will says thefuture::ok(unimplemented!())
is unreachable expression.but when
cargo run
, I got a panic:thread 'main' panicked at 'not yet implemented', src\main.rs:5:16
. theunimplemented!()
macro is worked.The text was updated successfully, but these errors were encountered: