Skip to content

Commit 4d34ce2

Browse files
committed
Place test with async-await and use 2018 edition
1 parent 06e4ff4 commit 4d34ce2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/fmt/issue-64477.rs renamed to src/test/ui/async-await/issues/issue-64477-2.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
// Another regression test for #64477.
2+
//
13
// In the past, the code generated by `format!` produced temporaries in the surrounding scope that
24
// borrowed the arguments through `&dyn Trait`. These temporaries do not implement `Send`, which
35
// meant that when `format!` was used in an async block, the resulting generator was not `Send`.
46
// See https://github.com/rust-lang/rust/issues/64477#issuecomment-534669068 for details
57
// and https://github.com/rust-lang/rust/issues/64477#issuecomment-531882958 for an example.
8+
//
9+
// check-pass
10+
// edition:2018
11+
612
async fn foo(_: String) {}
713

814
fn bar() -> impl Send {

0 commit comments

Comments
 (0)