rust/tests/crashes/137916.rs
2025-03-08 20:13:07 +01:00

14 lines
233 B
Rust

//@ known-bug: #137916
//@ compile-flags: --edition=2021
use std::ptr::null;
async fn a() -> Box<dyn Send> {
Box::new(async {
let non_send = null::<()>();
&non_send;
async {}.await
})
}
fn main() {}