Update error message with too many parameters
This commit is contained in:
parent
341eaf5f55
commit
cc66d29e43
@ -693,7 +693,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||||||
self.sess,
|
self.sess,
|
||||||
fn_decl_span,
|
fn_decl_span,
|
||||||
E0628,
|
E0628,
|
||||||
"too many parameters for generator (expected 0 or 1 parameters)"
|
"too many parameters for a generator (expected 0 or 1 parameters)"
|
||||||
)
|
)
|
||||||
.emit();
|
.emit();
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#![feature(generators)]
|
#![feature(generators)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|(), ()| { //~ error: too many parameters for generator
|
|(), ()| {
|
||||||
|
//~^ error: too many parameters for a generator
|
||||||
yield;
|
yield;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
error[E0628]: too many parameters for generator (expected 0 or 1 parameters)
|
error[E0628]: too many parameters for a generator (expected 0 or 1 parameters)
|
||||||
--> $DIR/too-many-parameters.rs:4:5
|
--> $DIR/too-many-parameters.rs:4:5
|
||||||
|
|
|
|
||||||
LL | |(), ()| {
|
LL | |(), ()| {
|
||||||
|
Loading…
Reference in New Issue
Block a user