We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07d5a96 commit 5b709acCopy full SHA for 5b709ac
2 files changed
tests/ui/test_fail/04-bad-sync-cond.rs
@@ -1,16 +1,6 @@
1
-use maybe_async::maybe_async;
2
-
3
-#[maybe_async]
4
-async fn async_fn() -> bool {
5
- true
6
-}
7
8
// bad sync condition
9
#[maybe_async::test(unknown(feature="async", async_std::test))]
10
-async fn test_async_fn() {
11
- let res = async_fn().await;
12
- assert_eq!(res, true);
13
+async fn test_async_fn() {}
14
15
fn main() {
16
tests/ui/test_fail/04-bad-sync-cond.stderr
@@ -1,5 +1,5 @@
error[E0537]: invalid predicate `unknown`
- --> tests/ui/test_fail/04-bad-sync-cond.rs:9:21
+ --> tests/ui/test_fail/04-bad-sync-cond.rs:2:21
|
-9 | #[maybe_async::test(unknown(feature="async", async_std::test))]
+2 | #[maybe_async::test(unknown(feature="async", async_std::test))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments