mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			213 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			213 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ edition:2021
 | |
| 
 | |
| trait Trait<const N: dyn Trait = bar> {
 | |
|     //~^ ERROR: cannot find value `bar` in this scope
 | |
|     //~| ERROR: cycle detected when computing type of `Trait::N`
 | |
|     async fn a() {}
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
