Skip to content

Commit

Permalink
Auto merge of #61608 - Aaron1011:feature/weird-expr-yield, r=Centril
Browse files Browse the repository at this point in the history
Add nested 'yield' expression to weird expressions test
  • Loading branch information
bors committed Jun 10, 2019
2 parents ad3829f + f1a9033 commit 5d4aef6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/run-pass/weird-exprs.rs
Original file line number Diff line number Diff line change
@@ -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 5d4aef6

Please sign in to comment.