Skip to content

Commit

Permalink
fix run-pass test that required Copy impl
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Feb 19, 2017
1 parent 9e0171f commit 75da4b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/run-pass/const-enum-vec-index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 75da4b6

Please sign in to comment.