mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			220 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			220 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ edition: 2021
 | |
| 
 | |
| trait Foo {
 | |
|     async fn foo<T>();
 | |
| }
 | |
| 
 | |
| impl Foo for () {
 | |
|     async fn foo<const N: usize>() {}
 | |
|     //~^ ERROR: method `foo` has an incompatible generic parameter for trait `Foo` [E0053]
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
