The todo!() macro produces an unreachable expression warning:
#[throws(Error)]
fn foo() {
todo!()
}
warning: unreachable expression
--> rocket_lang/src/main.rs:4:1
|
4 | #[throws(Error)]
| ^^^^^^^^^^^^^^^^ unreachable expression
5 | fn foo() {
6 | todo!()
| ------- any code following this expression is unreachable
|
= note: `#[warn(unreachable_code)]` on by default
= note: this warning originates in the attribute macro `throws` (in Nightly builds, run with -Z macro-backtrace for more info)
It'd be nice if this were be fixed if possible.
The
todo!()macro produces an unreachable expression warning:It'd be nice if this were be fixed if possible.