blob: d11b3e548f721f25d2a253057dcaff1953d196a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// ignore-wasm32-bare compiled with panic=abort by default
#![feature(generators, generator_trait)]
use std::ops::Generator;
use std::pin::Pin;
// EMIT_MIR inline_generator.main.Inline.diff
fn main() {
let _r = Pin::new(&mut g()).resume(false);
}
#[inline(always)]
pub fn g() -> impl Generator<bool> {
#[inline(always)]
|a| { yield if a { 7 } else { 13 } }
}
|