Skip to content

Commit 59762ba

Browse files
committed
Move async/await tests to test/ui/async-await
1 parent fc45382 commit 59762ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+20
-2
lines changed

src/test/run-pass/async-await.rs renamed to src/test/ui/async-await/async-await.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
// edition:2018
24
// aux-build:arc_wake.rs
35

src/test/run-pass/await-macro.rs renamed to src/test/ui/async-await/await-macro.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
// edition:2018
24
// aux-build:arc_wake.rs
35

File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#![feature(async_await)]
2-
#![allow(unused_parens)]
1+
// run-pass
32

43
// edition:2018
54
// pp-exact
65

6+
#![feature(async_await)]
7+
#![allow(unused_parens)]
8+
79
fn main() { let _a = (async { }); }

src/test/run-pass/generator/issue-59972.rs renamed to src/test/ui/async-await/issue-59972.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
// compile-flags: --edition=2018
24

35
#![feature(async_await, await_macro)]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error[E0708]: `async` non-`move` closures with arguments are not currently supported
2+
--> $DIR/no-args-non-move-async-closure.rs:6:13
3+
|
4+
LL | let _ = async |x: u8| {};
5+
| ^^^^^^^^^^^^^
6+
|
7+
= help: consider using `let` statements to manually capture variables by reference before entering an `async move` closure
8+
9+
error: aborting due to previous error
10+

0 commit comments

Comments
 (0)