mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
14 lines
217 B
Rust
14 lines
217 B
Rust
//@ known-bug: #137916
|
|
//@ 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() {}
|