Skip to content

Commit

Permalink
Rollup merge of rust-lang#57791 - estebank:issue-54582, r=zackmdavis
Browse files Browse the repository at this point in the history
Add regression test for rust-lang#54582

Fix rust-lang#54582.
  • Loading branch information
GuillaumeGomez committed Jan 21, 2019
2 parents 3d6296e + 3ecbe1e commit 4e5de9e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/ui/issues/issue-54582.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// run-pass

pub trait Stage: Sync {}

pub enum Enum {
A,
B,
}

impl Stage for Enum {}

pub static ARRAY: [(&Stage, &str); 1] = [
(&Enum::A, ""),
];

fn main() {}

0 comments on commit 4e5de9e

Please sign in to comment.