Skip to content

Commit

Permalink
Add nested 'yield' expression to weird expressions test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Jun 7, 2019
1 parent 5eeb567 commit f1a9033
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/run-pass/weird-exprs.rs
@@ -1,3 +1,5 @@
#![feature(generators)]

#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![allow(unreachable_code)]
Expand Down Expand Up @@ -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();
Expand All @@ -157,4 +165,5 @@ pub fn main() {
special_characters();
punch_card();
r#match();
i_yield();
}

0 comments on commit f1a9033

Please sign in to comment.