Rustc suggests creating a Box<Box<Box<(...)File>>> when std::io::Write isn't imported #84792
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
play.rust-lang.org: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=320bd0fa60b7736e04ac82df5a77c760
It isn't able to run in the online thing, but the rest of the code is at https://github.com/C34A/vm1/blob/files/src/main.rs
The current output is:
Boxing
output_file
results in:... and so on.
The issue is that I don't have
std::io::Write
imported. I'm not sure exactly what the best output would be.I am using a recent 1.53 nightly build:
The text was updated successfully, but these errors were encountered: