Skip to content

Commit

Permalink
Add regression test for #54582
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jan 21, 2019
1 parent 0c0c585 commit 3ecbe1e
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 3ecbe1e

Please sign in to comment.