]> git.lizzy.rs Git - rust.git/commitdiff
Make error help clearer
authorEthan Brierley <ethanboxx@gmail.com>
Mon, 12 Oct 2020 12:18:29 +0000 (07:18 -0500)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 12:18:29 +0000 (07:18 -0500)
Co-authored-by: varkor <github@varkor.com>
compiler/rustc_resolve/src/diagnostics.rs

index 83706e8a96f076352fd894187b3ce1eb06ddb20d..99773cd176426d8c47f577131b0f153c427f6bbc 100644 (file)
@@ -477,7 +477,7 @@ impl<'a> Resolver<'a> {
                     err.note("type parameters may not be used in anonymous constants");
                 } else {
                     err.help(&format!(
-                        "const parameters may only be used as standalone arguments `{}`",
+                        "const parameters may only be used as standalone arguments, i.e. `{}`",
                         name
                     ));
                 }