Debian Codegraph @

third_party/rust/maybe-async/tests/ui/test_fail/01-empty-test.rs

raw
1 use maybe_async::maybe_async;
2
3 #[maybe_async]
4 async fn async_fn() -> bool {
5 true
6 }
7
8 // at least one sync condition should be specified
9 #[maybe_async::test()]
10 async fn test_async_fn() {
11 let res = async_fn().await;
12 assert_eq!(res, true);
13 }
14
15 fn main() {
16
17 }