2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(unused_must_use)]
|
2011-06-15 11:19:50 -07:00
|
|
|
// Regression test for issue #152.
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-03-25 17:06:52 -07:00
|
|
|
let mut b: usize = 1_usize;
|
2015-03-23 07:04:15 -07:00
|
|
|
while b < std::mem::size_of::<usize>() {
|
2015-02-18 05:42:01 -05:00
|
|
|
0_usize << b;
|
|
|
|
b <<= 1_usize;
|
2014-10-14 21:07:11 -04:00
|
|
|
println!("{}", b);
|
2011-12-22 14:42:52 -08:00
|
|
|
}
|
|
|
|
}
|