2025-03-07 23:17:25 +01:00
|
|
|
//@ known-bug: #137916
|
2025-04-08 15:17:08 +02:00
|
|
|
//@ 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() {}
|