Remove a little jargon from error
Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
parent
eec443681e
commit
e62da8ff0b
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ impl<'a> Resolver<'a> {
|
||||||
err.span_label(span, &format!("cannot perform const operation using `{}`", name));
|
err.span_label(span, &format!("cannot perform const operation using `{}`", name));
|
||||||
|
|
||||||
if is_type {
|
if is_type {
|
||||||
err.note("type parameters may not be used in anonymous constants");
|
err.note("type parameters may not be used in const expressions");
|
||||||
} else {
|
} else {
|
||||||
err.help(&format!(
|
err.help(&format!(
|
||||||
"const parameters may only be used as standalone arguments, i.e. `{}`",
|
"const parameters may only be used as standalone arguments, i.e. `{}`",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue