diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-23898.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-23898.rs b/src/test/ui/issues/issue-23898.rs new file mode 100644 index 000000000..3de365675 --- /dev/null +++ b/src/test/ui/issues/issue-23898.rs @@ -0,0 +1,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)]; +} |