mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-03 14:29:43 +00:00
Add a test to ensure issue #89699 does not show up again. This test emits an `async move` closure in a proc macro, which is used in a test program compiled with edition 2015. We make sure the error message is nice and shows up properly.
9 lines
198 B
Plaintext
9 lines
198 B
Plaintext
error: `async move` blocks are only allowed in Rust 2018 or later
|
|
--> $DIR/edition-gated-async-move-syntax-issue89699.rs:10:1
|
|
|
|
|
LL | fn foo() {}
|
|
| ^^
|
|
|
|
error: aborting due to previous error
|
|
|