rust/tests/run-pass/issue-31267-additional.rs
2019-02-26 18:37:45 +00:00

18 lines
208 B
Rust

#[derive(Clone, Copy, Debug)]
struct Bar;
const BAZ: Bar = Bar;
#[derive(Debug)]
struct Foo([Bar; 1]);
struct Biz;
impl Biz {
const BAZ: Foo = Foo([BAZ; 1]);
}
fn main() {
let _foo = Biz::BAZ;
}