blob: ccae08accb6f8b770d1eabc83e9f0fac6e1270e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// edition: 2021
// check-pass
#![allow(incomplete_features)]
use std::future::Future;
use std::marker::PhantomData;
trait Lockable<K, V> {
#[allow(async_fn_in_trait)]
async fn lock_all_entries(&self) -> impl Future<Output = Guard<'_>>;
}
struct Guard<'a>(PhantomData<&'a ()>);
fn main() {}
|