mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Rollup merge of #57791 - estebank:issue-54582, r=zackmdavis
Add regression test for #54582 Fix #54582.
This commit is contained in:
@@ -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() {}
|
||||
Reference in New Issue
Block a user