summaryrefslogtreecommitdiff
path: root/tests/ui/test_fail/01-empty-test.rs
blob: f409e7334a1a2162989f5039977bc4c01c7a3f29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use maybe_async::maybe_async;

#[maybe_async]
async fn async_fn() -> bool {
    true
}

// at least one sync condition should be specified
#[maybe_async::test()]
async fn test_async_fn() {
    let res = async_fn().await;
    assert_eq!(res, true);
}

fn main() {

}