Fix error code
This commit is contained in:
parent
9a6a8668ae
commit
0f8897cc35
@ -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
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user