Open
Description
So, I got the type annotations needed
error. I tried everything. It refuses to work.
let tmp: Result<NamedTempFile, ()> = NamedTempFile::new().map_err::<(), _>(|_: std::io::Error| ());
let mut tmp: NamedTempFile = tmp?;
Error
(please don't tell me the code is stupid. I have a valid reason to ignore the error)
If this is my fault, and not an issue with Rust, apologies for spamming you with yet another false issue :(
I feel horrible
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Type inferenceArea: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.`#![feature(try_blocks)]`Relevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.