2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2016-03-07 15:42:29 -08:00
|
|
|
mod u8 {
|
|
|
|
pub const BITS: usize = 8;
|
|
|
|
}
|
2014-04-25 14:42:36 -07:00
|
|
|
|
2015-03-28 16:07:25 +03:00
|
|
|
const NUM: usize = u8::BITS;
|
2014-04-25 14:42:36 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
struct MyStruct { nums: [usize; 8] }
|
2014-04-25 14:42:36 -07:00
|
|
|
|
|
|
|
fn main() {
|
2014-12-20 15:20:51 +13:00
|
|
|
let _s = MyStruct { nums: [0; NUM] };
|
2014-04-25 14:42:36 -07:00
|
|
|
}
|