Add test for E0628 (too many generator parameters)
This commit is contained in:
parent
fca614eb57
commit
4ee857c4c3
7
src/test/ui/generator/too-many-parameters.rs
Normal file
7
src/test/ui/generator/too-many-parameters.rs
Normal file
@ -0,0 +1,7 @@
|
||||
#![feature(generators)]
|
||||
|
||||
fn main() {
|
||||
|(), ()| { //~ error: too many parameters for generator
|
||||
yield;
|
||||
};
|
||||
}
|
8
src/test/ui/generator/too-many-parameters.stderr
Normal file
8
src/test/ui/generator/too-many-parameters.stderr
Normal file
@ -0,0 +1,8 @@
|
||||
error[E0628]: too many parameters for generator (expected 0 or 1 parameters)
|
||||
--> $DIR/too-many-parameters.rs:4:5
|
||||
|
|
||||
LL | |(), ()| {
|
||||
| ^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
Reference in New Issue
Block a user