about summary refs log tree commit diff
path: root/tests/ui/async-await/async-drop/ex-ice1.rs
blob: f514c57097a3a31a550d101d9681ce9438cca2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! This test used to ICE: rust-lang/rust#128695
//! Fixed when re-work async drop to shim drop glue coroutine scheme.
//@ edition: 2021

use core::pin::{pin, Pin};

fn main() {
    let fut = pin!(async {
        let async_drop_fut = pin!(core::future::async_drop(async {})); //~ ERROR: expected function, found module `core::future::async_drop`
        //~^ ERROR: module `async_drop` is private
        (async_drop_fut).await;
    });
}