Fix error code

This commit is contained in:
John Kåre Alsaker 2017-07-20 05:52:41 +02:00
parent 9a6a8668ae
commit 0f8897cc35
2 changed files with 2 additions and 2 deletions

View File

@ -2025,5 +2025,5 @@ fn foo<'a>(x: &'a i32, y: &i32) -> &'a i32 {
E0490, // a value of type `..` is borrowed for too long
E0495, // cannot infer an appropriate lifetime due to conflicting requirements
E0566, // conflicting representation hints
E0624, // generators cannot have explicit arguments
E0625, // generators cannot have explicit arguments
}

View File

@ -1947,7 +1947,7 @@ fn lower_expr(&mut self, e: &Expr) -> hir::Expr {
e
});
if gen == hir::IsGenerator::Yes && !decl.inputs.is_empty() {
span_err!(this.sess, fn_decl_span, E0624,
span_err!(this.sess, fn_decl_span, E0625,
"yield statement outside of generator literal");
this.sess.abort_if_errors();
}