Skip to content

Commit

Permalink
fix run-pass test that tried to move in const
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Feb 20, 2017
1 parent e49e43a commit 7770e9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/run-pass/const-enum-vec-index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// 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];
Expand Down

0 comments on commit 7770e9a

Please sign in to comment.