Skip to content

Commit a311372

Browse files
authored
Rollup merge of rust-lang#57791 - estebank:issue-54582, r=zackmdavis
Add regression test for rust-lang#54582 Fix rust-lang#54582.
2 parents 45e6a2b + 3ecbe1e commit a311372

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test/ui/issues/issue-54582.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// run-pass
2+
3+
pub trait Stage: Sync {}
4+
5+
pub enum Enum {
6+
A,
7+
B,
8+
}
9+
10+
impl Stage for Enum {}
11+
12+
pub static ARRAY: [(&Stage, &str); 1] = [
13+
(&Enum::A, ""),
14+
];
15+
16+
fn main() {}

0 commit comments

Comments
 (0)