Box::new requires use std::boxed::Box
despite prelude injection
#20730
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
In my branch that has #20723 landed, this oddity comes up:
Ready? Watch this:
That is, the
Box::new
call fails, unless one includes ause std::boxed::Box
in one's code. Truly weird.I spent much time today trying to dig into this (when I should have been dealing with the other fallout from feature gating box), but in the end I decided that this is "just a bug" and its an easy enough work around for the purposes of the alpha.
The text was updated successfully, but these errors were encountered: