os-rust/tests/ui/issues/issue-13763.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
235 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616
mod u8 {
pub const BITS: usize = 8;
}
2015-03-28 16:07:25 +03:00
const NUM: usize = u8::BITS;
struct MyStruct { nums: [usize; 8] }
fn main() {
let _s = MyStruct { nums: [0; NUM] };
}