about summary refs log tree commit diff
path: root/tests/crashes/137916.rs
blob: b25e7b200d959e78ffd51697ff9ac5667a5e5cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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() {}