mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			248 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			248 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// run-pass
 | 
						|
 | 
						|
#![allow(unused_must_use)]
 | 
						|
// Regression test for issue #152.
 | 
						|
pub fn main() {
 | 
						|
    let mut b: usize = 1_usize;
 | 
						|
    while b < std::mem::size_of::<usize>() {
 | 
						|
        0_usize << b;
 | 
						|
        b <<= 1_usize;
 | 
						|
        println!("{}", b);
 | 
						|
    }
 | 
						|
}
 |