From 75da4b663ef3111f846e8fa5a9f3b3baaf92b4a3 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sun, 19 Feb 2017 15:26:32 -0500 Subject: [PATCH] fix run-pass test that required `Copy` impl --- src/test/run-pass/const-enum-vec-index.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/run-pass/const-enum-vec-index.rs b/src/test/run-pass/const-enum-vec-index.rs index 4af6a6d10d5..9c1a4dbdffa 100644 --- a/src/test/run-pass/const-enum-vec-index.rs +++ b/src/test/run-pass/const-enum-vec-index.rs @@ -8,7 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[derive(Copy, Clone)] enum E { V1(isize), V0 } + const C: &'static [E] = &[E::V0, E::V1(0xDEADBEE)]; static C0: E = C[0]; static C1: E = C[1];