default_free_fn
feature does not have the same diagnostics as using Default::default
in recursing situations
#102825
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: Rust playground link
The current output is:
Ideally the output should look like: (Using
Default::default()
)Using
default()
should also warn the user about unconditional_recursion.The text was updated successfully, but these errors were encountered: