summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-54582.rs
blob: 8c50cac67f8fc4a347435b2363d382c0ce0bcdc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-pass

pub trait Stage: Sync {}

pub enum Enum {
    A,
    B,
}

impl Stage for Enum {}

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

fn main() {}