From 63009692e0c2056b3727c806a24d4e2d4f18ff63 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Sat, 31 Oct 2015 19:34:25 -0200 Subject: [PATCH] 23513 Reference rust-lang/rust#23513 --- src/23513.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/23513.rs diff --git a/src/23513.rs b/src/23513.rs new file mode 100644 index 00000000..16766b33 --- /dev/null +++ b/src/23513.rs @@ -0,0 +1,7 @@ +enum E { A, } + +const C: [u32; 1] = [1]; + +fn main() { + let a = C[E::A as usize]; +}