2022-09-24 18:53:53 +00:00
|
|
|
// compile-flags:--crate-type=lib
|
|
|
|
// edition:2021
|
|
|
|
// check-pass
|
2023-03-07 18:26:02 -03:00
|
|
|
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
|
|
|
|
// revisions: current next
|
2022-09-24 18:53:53 +00:00
|
|
|
|
|
|
|
#![feature(async_fn_in_trait)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
trait T {
|
|
|
|
async fn foo();
|
|
|
|
}
|