mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
21 lines
380 B
Rust
21 lines
380 B
Rust
// 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)]
|
|
|
|
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() {}
|