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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
180 B
Rust
Raw Normal View History

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