rust/tests/crashes/137916.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
217 B
Rust
Raw Normal View History

2025-03-07 23:17:25 +01:00
//@ known-bug: #137916
//@ edition: 2021
2025-03-07 23:17:25 +01:00
use std::ptr::null;
async fn a() -> Box<dyn Send> {
Box::new(async {
let non_send = null::<()>();
&non_send;
async {}.await
})
}
fn main() {}