0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-24 09:26:11 +01:00
rust/tests/crashes/128094.rs
2024-08-04 21:25:49 +02:00

15 lines
284 B
Rust

//@ known-bug: rust-lang/rust#128094
//@ compile-flags: -Zmir-opt-level=5 --edition=2018
pub enum Request {
TestSome(T),
}
pub async fn handle_event(event: Request) {
async move {
static instance: Request = Request { bar: 17 };
&instance
}
.await;
}