We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
&format!
1 parent 7d5db23 commit 5f0b775Copy full SHA for 5f0b775
compiler/rustc_resolve/src/diagnostics.rs
@@ -480,9 +480,7 @@ impl<'a> Resolver<'a> {
480
);
481
482
if is_type {
483
- err.note(&format!(
484
- "type parameters are currently not permitted in anonymous constants"
485
- ));
+ err.note("type parameters are currently not permitted in anonymous constants");
486
} else {
487
err.help(
488
&format!("it is currently only allowed to use either `{0}` or `{{ {0} }}` as generic constants",
0 commit comments