1
Fork 0

Add tests for static async functions in traits

This patch adds test cases for AFIT, the majority of which are currently
expected to run as `check-fail`.
This commit is contained in:
Bryan Garza 2022-10-04 01:27:11 +00:00
parent 0da281b606
commit 97423d331f
19 changed files with 530 additions and 0 deletions

View file

@ -0,0 +1,17 @@
// check-pass
// edition: 2021
#![feature(async_fn_in_trait)]
#![allow(incomplete_features)]
trait MyTrait {
async fn foo(&self) -> i32;
}
impl MyTrait for i32 {
async fn foo(&self) -> i32 {
*self
}
}
fn main() {}