mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Fix error code
This commit is contained in:
parent
9a6a8668ae
commit
0f8897cc35
@ -2025,5 +2025,5 @@ register_diagnostics! {
|
||||
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 @@ impl<'a> LoweringContext<'a> {
|
||||
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