]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/in-trait/nested-rpit.rs
Rollup merge of #107186 - GuillaumeGomez:correct-pseudo-element-selector, r=notriddle
[rust.git] / tests / ui / async-await / in-trait / nested-rpit.rs
1 // edition: 2021
2 // known-bug: #105197
3 // failure-status:101
4 // dont-check-compiler-stderr
5
6 #![feature(async_fn_in_trait)]
7 #![feature(return_position_impl_trait_in_trait)]
8 #![allow(incomplete_features)]
9
10 use std::future::Future;
11 use std::marker::PhantomData;
12
13 trait Lockable<K, V> {
14     async fn lock_all_entries(&self) -> impl Future<Output = Guard<'_>>;
15 }
16
17 struct Guard<'a>(PhantomData<&'a ()>);
18
19 fn main() {}