mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
Remove redundant &format!
.
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
This commit is contained in:
parent
7d5db239e7
commit
5f0b775390
@ -480,9 +480,7 @@ impl<'a> Resolver<'a> {
|
||||
);
|
||||
|
||||
if is_type {
|
||||
err.note(&format!(
|
||||
"type parameters are currently not permitted in anonymous constants"
|
||||
));
|
||||
err.note("type parameters are currently not permitted in anonymous constants");
|
||||
} else {
|
||||
err.help(
|
||||
&format!("it is currently only allowed to use either `{0}` or `{{ {0} }}` as generic constants",
|
||||
|
Loading…
Reference in New Issue
Block a user