-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
async-move-2015: Rename test, add comments, remove test output
- Loading branch information
1 parent
ac7f2d1
commit 9746b0f
Showing
5 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/ui/proc-macro/edition-gated-async-move-syntax-issue89699.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// aux-build:edition-gated-async-move-syntax.rs | ||
// edition: 2015 | ||
|
||
// Non-regression test for issue #89699, where a proc-macro emitting syntax only available in | ||
// edition 2018 and up (`async move`) is used on edition 2015 | ||
|
||
extern crate edition_gated_async_move_syntax; | ||
|
||
#[edition_gated_async_move_syntax::foo] | ||
fn foo() {} //~ ERROR `async move` blocks are only allowed in Rust 2018 or later |
8 changes: 8 additions & 0 deletions
8
tests/ui/proc-macro/edition-gated-async-move-syntax-issue89699.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: `async move` blocks are only allowed in Rust 2018 or later | ||
--> $DIR/edition-gated-async-move-syntax-issue89699.rs:9:1 | ||
| | ||
LL | fn foo() {} | ||
| ^^ | ||
|
||
error: aborting due to previous error | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.