diff options
Diffstat (limited to 'tests/ui/traits/new-solver/async.rs')
-rw-r--r-- | tests/ui/traits/new-solver/async.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/ui/traits/new-solver/async.rs b/tests/ui/traits/new-solver/async.rs deleted file mode 100644 index 155b71eb7..000000000 --- a/tests/ui/traits/new-solver/async.rs +++ /dev/null @@ -1,19 +0,0 @@ -// compile-flags: -Ztrait-solver=next -// edition: 2021 -// revisions: pass fail -//[pass] check-pass - -use std::future::Future; - -fn needs_async(_: impl Future<Output = i32>) {} - -#[cfg(fail)] -fn main() { - needs_async(async {}); - //[fail]~^ ERROR type mismatch -} - -#[cfg(pass)] -fn main() { - needs_async(async { 1i32 }); -} |