rust/tests/ui/async-await/in-trait/nested-rpit.rs
Michael Goulet 28d58f6524 Bless tests
2023-10-03 00:37:18 +00:00

19 lines
384 B
Rust

// edition: 2021
// check-pass
#![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> {
#[allow(async_fn_in_trait)]
async fn lock_all_entries(&self) -> impl Future<Output = Guard<'_>>;
}
struct Guard<'a>(PhantomData<&'a ()>);
fn main() {}