Skip to content

Commit 7770e9a

Browse files
committed
fix run-pass test that tried to move in const
1 parent e49e43a commit 7770e9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/run-pass/const-enum-vec-index.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[derive(Copy, Clone)]
1112
enum E { V1(isize), V0 }
1213
const C: &'static [E] = &[E::V0, E::V1(0xDEADBEE)];
1314
static C0: E = C[0];

0 commit comments

Comments
 (0)