]> git.lizzy.rs Git - rust.git/commitdiff
Consolidate equality constraints error message
authorvarkor <github@varkor.com>
Tue, 8 Jan 2019 23:53:43 +0000 (23:53 +0000)
committervarkor <github@varkor.com>
Tue, 8 Jan 2019 23:53:43 +0000 (23:53 +0000)
src/librustc_passes/ast_validation.rs
src/test/ui/where-clauses/where-equality-constraints.stderr

index 584f0ba0449e1213f007ad7658aaf27bcfbe75f7..3d0e46d998622e2791e6f8ba093b2843b3bc91de 100644 (file)
@@ -438,8 +438,9 @@ fn visit_generics(&mut self, generics: &'a Generics) {
         }
         for predicate in &generics.where_clause.predicates {
             if let WherePredicate::EqPredicate(ref predicate) = *predicate {
-                self.err_handler().span_err(predicate.span, "equality constraints are not yet \
-                                                             supported in where clauses (#20041)");
+                self.err_handler()
+                    .span_err(predicate.span, "equality constraints are not yet \
+                                               supported in where clauses (see #20041)");
             }
         }
         visit::walk_generics(self, generics)
index 56caaaeee401e988491361b3a23513a6a2845610..220447079c629f88ed84f6d0d838963c312abbca 100644 (file)
@@ -1,10 +1,10 @@
-error: equality constraints are not yet supported in where clauses (#20041)
+error: equality constraints are not yet supported in where clauses (see #20041)
   --> $DIR/where-equality-constraints.rs:1:14
    |
 LL | fn f() where u8 = u16 {}
    |              ^^^^^^^^
 
-error: equality constraints are not yet supported in where clauses (#20041)
+error: equality constraints are not yet supported in where clauses (see #20041)
   --> $DIR/where-equality-constraints.rs:3:14
    |
 LL | fn g() where for<'a> &'static (u8,) == u16, {}