Fix error message string

This commit is contained in:
John Kåre Alsaker 2017-07-20 08:06:21 +02:00
parent 0f8897cc35
commit 9556faca68

View File

@ -1948,7 +1948,7 @@ impl<'a> LoweringContext<'a> {
});
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),