Skip to content

Commit e62da8f

Browse files
eopbvarkor
andauthored
Remove a little jargon from error
Co-authored-by: varkor <github@varkor.com>
1 parent eec4436 commit e62da8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ impl<'a> Resolver<'a> {
474474
err.span_label(span, &format!("cannot perform const operation using `{}`", name));
475475

476476
if is_type {
477-
err.note("type parameters may not be used in anonymous constants");
477+
err.note("type parameters may not be used in const expressions");
478478
} else {
479479
err.help(&format!(
480480
"const parameters may only be used as standalone arguments, i.e. `{}`",

0 commit comments

Comments
 (0)