2022-12-04 08:18:52 -06:00
|
|
|
// edition: 2021
|
2023-01-12 00:07:53 -06:00
|
|
|
// known-bug: #105197
|
|
|
|
// failure-status:101
|
|
|
|
// dont-check-compiler-stderr
|
2022-12-04 08:18:52 -06:00
|
|
|
|
|
|
|
#![feature(async_fn_in_trait)]
|
|
|
|
#![feature(return_position_impl_trait_in_trait)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
use std::future::Future;
|
|
|
|
use std::marker::PhantomData;
|
|
|
|
|
|
|
|
trait Lockable<K, V> {
|
|
|
|
async fn lock_all_entries(&self) -> impl Future<Output = Guard<'_>>;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Guard<'a>(PhantomData<&'a ()>);
|
|
|
|
|
|
|
|
fn main() {}
|