"Consider borrowing here" message does not show up when argument is a format call #100830
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.
Uh oh!
There was an error while loading. Please reload this page.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ee83cc45a558eccd6b784e17065e71a5
The current output is:
Using
String::from
directly tells us we can borrow it with&
. Usingformat!
does not.The text was updated successfully, but these errors were encountered: