summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-13763.rs
blob: dd5f6dbc9dcbb9b4d78d054f26eaf3b49c5b1a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

mod u8 {
    pub const BITS: usize = 8;
}

const NUM: usize = u8::BITS;

struct MyStruct { nums: [usize; 8] }

fn main() {
    let _s = MyStruct { nums: [0; NUM] };
}