fix run-pass test that required Copy impl

This commit is contained in:
Niko Matsakis 2017-02-19 15:26:32 -05:00
parent 9e0171f7c8
commit 75da4b663e

View File

@ -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];