]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/in-trait/async-generics.rs
New upstream version 1.66.0+dfsg1
[rustc.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() {}