rust/tests/ui/async-await/in-trait/async-generics.rs
2024-02-16 20:02:50 +00:00

16 lines
228 B
Rust

//@ check-fail
//@ known-bug: #102682
//@ edition: 2021
trait MyTrait<T, U> {
async fn foo(&self) -> &(T, U);
}
impl<T, U> MyTrait<T, U> for (T, U) {
async fn foo(&self) -> &(T, U) {
self
}
}
fn main() {}