Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
9
tests/ui/generator/issue-64620-yield-array-element.rs
Normal file
9
tests/ui/generator/issue-64620-yield-array-element.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Regression test for #64620
|
||||
|
||||
#![feature(generators)]
|
||||
|
||||
pub fn crash(arr: [usize; 1]) {
|
||||
yield arr[0]; //~ ERROR: yield expression outside of generator literal
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue