mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			228 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			228 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Just check we don't get an ICE for `N`.
 | |
| 
 | |
| use std::cell::Cell;
 | |
| use std::mem;
 | |
| 
 | |
| pub struct S {
 | |
|     s: Cell<usize>
 | |
| }
 | |
| 
 | |
| pub const N: usize = 0 - (mem::size_of::<S>() != 400) as usize;
 | |
| //~^ ERROR evaluation of constant value failed
 | 
