We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e49e43a commit 7770e9aCopy full SHA for 7770e9a
src/test/run-pass/const-enum-vec-index.rs
@@ -8,6 +8,7 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
+#[derive(Copy, Clone)]
12
enum E { V1(isize), V0 }
13
const C: &'static [E] = &[E::V0, E::V1(0xDEADBEE)];
14
static C0: E = C[0];
0 commit comments