rust/tests/ui/crashes/ice-5238.rs

11 lines
211 B
Rust
Raw Normal View History

2020-02-28 15:00:20 -06:00
// Regression test for #5238 / https://github.com/rust-lang/rust/pull/69562
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
2020-02-28 15:00:20 -06:00
fn main() {
let _ = #[coroutine]
|| {
2020-02-28 15:00:20 -06:00
yield;
};
}