Compiler "suggests" boxing type to access method that is not callable without bringing trait into scope #84812
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: link
The current output is:
uncommenting the
let mut rng = Box::new(rng);
line gives the following output:and this just keeps adding more
Box<Box<Box<Box<Box<...<ThreadRng>>>>>>>>>
forever if you keep boxing in an attempt to access the "available method" 😆@estebank
The text was updated successfully, but these errors were encountered: