File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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`:
5151
5252``` rust,ignore 
5353// Check what happens when using await in a non-async fn. 
54- // edition:2018 
54+ //@  edition:2018 
5555
5656async fn foo() {} 
5757
@@ -66,7 +66,7 @@ A few things to notice about our test:
6666
6767*  The top should start with a short comment that [ explains what the test is
6868  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
7070  instructions to compiletest on how to build the test.
7171  Here we need to set the edition for ` async `  to work (the default is 2015).
7272*  Following that is the source of the test.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments