mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
15 lines
213 B
Rust
15 lines
213 B
Rust
//@ known-bug: #130935
|
|
//@ 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() {}
|