blob: 1c192fccd9f0c00f8bfb6a6e5cd8d896b1b10603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//@ edition: 2018
#![feature(async_drop)]
//~^ WARN the feature `async_drop` is incomplete
use std::future::AsyncDrop;
use std::pin::Pin;
struct Foo;
impl AsyncDrop for &Foo {
//~^ ERROR the `AsyncDrop` trait may only be implemented for
async fn drop(self: Pin<&mut Self>) {}
}
impl AsyncDrop for Pin<Foo> {
//~^ ERROR the `AsyncDrop` trait may only be implemented for
async fn drop(self: Pin<&mut Self>) {}
}
fn main() {}
|