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

10 lines
207 B
Rust
Raw Normal View History

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