blob: 45ada1d84c320cb574d1c3f81dac0b1377b5322a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// check-pass
// 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 TcpStack {
type Connection<'a>: Sized where Self: 'a;
fn connect<'a>(&'a self) -> Self::Connection<'a>;
async fn async_connect<'a>(&'a self) -> Self::Connection<'a>;
}
fn main() {}
|