os-rust/tests/ui/consts/issue-54582.rs

17 lines
180 B
Rust
Raw Normal View History

//@ run-pass
2019-01-20 17:14:15 -08:00
pub trait Stage: Sync {}
pub enum Enum {
A,
B,
}
impl Stage for Enum {}
2019-05-28 14:46:13 -04:00
pub static ARRAY: [(&dyn Stage, &str); 1] = [
2019-01-20 17:14:15 -08:00
(&Enum::A, ""),
];
fn main() {}