]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23898.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-23898.rs
1 // run-pass
2 #![allow(unused_parens)]
3 #![allow(non_camel_case_types)]
4
5 // Note: This test was used to demonstrate #5873 (now #23898).
6
7 enum State { ST_NULL, ST_WHITESPACE }
8
9 fn main() {
10     [State::ST_NULL; (State::ST_WHITESPACE as usize)];
11 }