rust/tests/ui/async-await/in-trait/async-generics.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
225 B
Rust
Raw Normal View History

2022-10-07 16:08:56 +00:00
// 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() {}