mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 15:05:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			168 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			168 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ known-bug: #106473
 | 
						|
#![feature(generic_const_exprs)]
 | 
						|
 | 
						|
const DEFAULT: u32 = 1;
 | 
						|
 | 
						|
struct V<const U: usize = DEFAULT>
 | 
						|
where
 | 
						|
    [(); U]:;
 | 
						|
 | 
						|
trait Tr {}
 | 
						|
 | 
						|
impl Tr for V {}
 |