]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/implied-bounds.rs
drive-by: Fix path spans
[rust.git] / src / test / ui / async-await / in-trait / implied-bounds.rs
1 // check-pass
2 // edition: 2021
3
4 #![feature(async_fn_in_trait)]
5 #![allow(incomplete_features)]
6
7 trait TcpStack {
8     type Connection<'a>: Sized where Self: 'a;
9     fn connect<'a>(&'a self) -> Self::Connection<'a>;
10     async fn async_connect<'a>(&'a self) -> Self::Connection<'a>;
11 }
12
13 fn main() {}