Skip to content

Commit 25d507f

Browse files
committed
review comment: move test
1 parent 13fd466 commit 25d507f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/test/ui/issues/issue-63398.rs renamed to src/test/ui/async-await/issues/non-async-enclosing-span.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
async fn do_the_thing() -> u8 {
55
8
66
}
7-
8-
fn main() {
7+
// #63398: point at the enclosing scope and not the previously seen closure
8+
fn main() { //~ NOTE this is not `async`
99
let x = move || {};
1010
let y = do_the_thing().await; //~ ERROR `await` is only allowed inside `async` functions
11+
//~^ NOTE only allowed inside `async` functions and blocks
1112
}

src/test/ui/issues/issue-63398.stderr renamed to src/test/ui/async-await/issues/non-async-enclosing-span.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0728]: `await` is only allowed inside `async` functions and blocks
2-
--> $DIR/issue-63398.rs:10:13
2+
--> $DIR/non-async-enclosing-span.rs:10:13
33
|
44
LL | fn main() {
55
| ---- this is not `async`

0 commit comments

Comments
 (0)