mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			259 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			259 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ edition:2021
 | 
						|
 | 
						|
 | 
						|
trait MyTrait {
 | 
						|
    async fn bar(&abc self);
 | 
						|
    //~^ ERROR expected identifier, found keyword `self`
 | 
						|
    //~| ERROR expected one of `:`, `@`, or `|`, found keyword `self`
 | 
						|
}
 | 
						|
 | 
						|
impl MyTrait for () {
 | 
						|
    async fn bar(&self) {}
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |