1
Fork 0

Add nested 'yield' expression to weird expressions test

This commit is contained in:
Aaron Hill 2019-06-06 23:01:54 -04:00
parent 5eeb567a27
commit f1a90331aa
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -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();
}