blob: 0d8fd7ea4eba3b57e6a0f52c1dd503a2439fb24b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ run-pass
#![allow(unused_parens)]
#![allow(non_camel_case_types)]
// Note: This test was used to demonstrate #5873 (now #23898).
enum State { ST_NULL, ST_WHITESPACE }
fn main() {
[State::ST_NULL; (State::ST_WHITESPACE as usize)];
}
|