warning: unreachable expression
--> src/main.rs:4:30
|
4 | let _: Option<_> = try { return Some(foo()?) };
| ^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unreachable_code)] on by default
warning: unreachable expression
--> src/main.rs:5:30
|
5 | let _: Option<_> = try { return Some(bar()?) };
| ^^^^^^^^^^^^^^^^^^^
The desugar should probably just suppress this warning for the code it generates.
https://play.rust-lang.org/?gist=363157c898e0d067260e711db131b256&version=nightly&edition=2018
The desugar should probably just suppress this warning for the code it generates.