// check-fail // known-bug: #102682 // edition: 2021 // [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty // revisions: current next #![feature(async_fn_in_trait)] #![allow(incomplete_features)] use std::fmt::Debug; use std::hash::Hash; trait MyTrait { async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash; } impl MyTrait for (T, U) { async fn foo(&self) -> &(T, U) { self } } fn main() {}