Add nested 'yield' expression to weird expressions test
This commit is contained in:
parent
5eeb567a27
commit
f1a90331aa
1 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
#![feature(generators)]
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unreachable_code)]
|
||||
|
@ -141,6 +143,12 @@ fn r#match() {
|
|||
assert_eq!(val, ());
|
||||
}
|
||||
|
||||
fn i_yield() {
|
||||
static || {
|
||||
yield yield yield yield yield yield yield yield yield;
|
||||
};
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
strange();
|
||||
funny();
|
||||
|
@ -157,4 +165,5 @@ pub fn main() {
|
|||
special_characters();
|
||||
punch_card();
|
||||
r#match();
|
||||
i_yield();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue