]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/diagnostics.rs
resolve, inconsistent binding mode: tweak wording.
[rust.git] / src / librustc_resolve / diagnostics.rs
index 18192a18cef3663e60f579f2f7a77b661c45d204..f8695061266a911030bebde5bd8880ad0f8fd8f6 100644 (file)
@@ -249,8 +249,7 @@ impl<'a> Resolver<'a> {
                     self.session,
                     span,
                     E0409,
-                    "variable `{}` is bound in inconsistent \
-                                ways within the same match arm",
+                    "variable `{}` is bound inconsistently across alternatives separated by `|`",
                     variable_name
                 );
                 err.span_label(span, "bound in different ways");