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