rust/tests/ui/async-await/in-trait/nested-rpit.rs
Michael Goulet 0a2b55d4c8 Revert "Make nested RPITIT inherit the parent opaque's generics." and adjust test
This reverts commit e2d41f4c974f0cc09e5aafb02883f222487610f9.
2023-01-12 06:07:53 +00:00

20 lines
412 B
Rust

// edition: 2021
// known-bug: #105197
// failure-status:101
// dont-check-compiler-stderr
#![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() {}