blob: 20511b1d8ee86c237cb6126d86c3b6db3e4d7da5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//@ edition: 2021
use std::future::AsyncDrop; //~ ERROR use of unstable library feature `async_drop`
use std::pin::Pin;
struct Foo {}
impl Drop for Foo {
fn drop(&mut self) {}
}
impl AsyncDrop for Foo { //~ ERROR use of unstable library feature `async_drop`
async fn drop(self: Pin<&mut Self>) {} //~ ERROR use of unstable library feature `async_drop`
}
fn main() {}
|