]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/async-generics.rs
Auto merge of #105175 - michaelwoerister:add-stable-ord-trait, r=nagisa
[rust.git] / src / test / ui / async-await / in-trait / async-generics.rs
1 // check-fail
2 // known-bug: #102682
3 // edition: 2021
4
5 #![feature(async_fn_in_trait)]
6 #![allow(incomplete_features)]
7
8 trait MyTrait<T, U> {
9     async fn foo(&self) -> &(T, U);
10 }
11
12 impl<T, U> MyTrait<T, U> for (T, U) {
13     async fn foo(&self) -> &(T, U) {
14         self
15     }
16 }
17
18 fn main() {}