Add regression test for #54582
This commit is contained in:
parent
0c0c585281
commit
3ecbe1efa0
16
src/test/ui/issues/issue-54582.rs
Normal file
16
src/test/ui/issues/issue-54582.rs
Normal file
@ -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() {}
|
Loading…
Reference in New Issue
Block a user