mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			362 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			362 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // revisions: full min
 | |
| 
 | |
| #![cfg_attr(full, feature(adt_const_params))]
 | |
| #![cfg_attr(full, allow(incomplete_features))]
 | |
| 
 | |
| struct Const<const P: *const u32>; //~ ERROR: using raw pointers as const generic parameters
 | |
| 
 | |
| fn main() {
 | |
|     let _: Const<{ 15 as *const _ }> = Const::<{ 10 as *const _ }>;
 | |
|     let _: Const<{ 10 as *const _ }> = Const::<{ 10 as *const _ }>;
 | |
| }
 | 
