mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
16 lines
235 B
Rust
16 lines
235 B
Rust
//@ 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] };
|
|
}
|