File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Let's place our async test at `tests/ui/async-await/await-without-async.rs`:
51
51
52
52
``` rust,ignore
53
53
// Check what happens when using await in a non-async fn.
54
- // edition:2018
54
+ //@ edition:2018
55
55
56
56
async fn foo() {}
57
57
@@ -66,7 +66,7 @@ A few things to notice about our test:
66
66
67
67
* The top should start with a short comment that [ explains what the test is
68
68
for] ( #explanatory_comment ) .
69
- * The ` // edition:2018 ` comment is called a [ header] ( headers.md ) which provides
69
+ * The ` //@ edition:2018 ` comment is called a [ header] ( headers.md ) which provides
70
70
instructions to compiletest on how to build the test.
71
71
Here we need to set the edition for ` async ` to work (the default is 2015).
72
72
* Following that is the source of the test.
You can’t perform that action at this time.
0 commit comments