Bad interaction between never_type, try_blocks, and From/Into #125364
Labels
C-bug
Category: This is a bug.
F-never_type
`#![feature(never_type)]`
F-try_blocks
`#![feature(try_blocks)]`
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
The following code does not compile but the 2 commented alternatives compile:
The error is:
For some reason, rustc believes that the try block should return
()
instead of!
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: