You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That error is correct, ! is not a subtype of i32 (in the olden days this was true and caused many ICEs). EDIT: That is, the error conforms to the accepted rust-lang/rfcs#1216.
gives
Typechecking passes if line 8 is replaced with
x.map(|y| unreachable(y))
or if line 3 is replaced withfn unreachable<T>(x: Void) -> T {
.CC @canndrew
Meta
rustc --version --verbose
:rustc 1.14.0-nightly (cae6ab1 2016-11-05)
binary: rustc
commit-hash: cae6ab1
commit-date: 2016-11-05
host: x86_64-unknown-linux-gnu
release: 1.14.0-nightly
LLVM version: 3.9
The text was updated successfully, but these errors were encountered: