mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			362 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			362 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// revisions: cpass1 cpass2
 | 
						|
 | 
						|
#![crate_type = "rlib"]
 | 
						|
 | 
						|
use std::fmt::Debug;
 | 
						|
 | 
						|
// MCVE kindly provided by Nilstrieb at
 | 
						|
// https://github.com/rust-lang/rust/issues/108481#issuecomment-1493080185
 | 
						|
 | 
						|
#[derive(Debug)]
 | 
						|
pub struct ConstGeneric<const CHUNK_SIZE: usize> {
 | 
						|
    _p: [(); CHUNK_SIZE],
 | 
						|
}
 | 
						|
 | 
						|
#[cfg(cpass1)]
 | 
						|
impl<const CHUNK_SIZE: usize> ConstGeneric<CHUNK_SIZE> {}
 |