]> git.lizzy.rs Git - rust.git/commitdiff
Fix error message string
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Thu, 20 Jul 2017 06:06:21 +0000 (08:06 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Fri, 28 Jul 2017 13:47:55 +0000 (15:47 +0200)
src/librustc/hir/lowering.rs

index 8a8b1317b39f46c2c964f9a3722398a4ce931af8..c4a3fe8fa626e1ed51dabf5cd6826a1cdf8db6a9 100644 (file)
@@ -1948,7 +1948,7 @@ fn lower_expr(&mut self, e: &Expr) -> hir::Expr {
                         });
                         if gen == hir::IsGenerator::Yes && !decl.inputs.is_empty() {
                             span_err!(this.sess, fn_decl_span, E0625,
-                                      "yield statement outside of generator literal");
+                                      "generators cannot have explicit arguments");
                             this.sess.abort_if_errors();
                         }
                         hir::ExprClosure(this.lower_capture_clause(capture_clause),