rust/tests/run-pass/issue-31267-additional.rs

18 lines
208 B
Rust
Raw Normal View History

#[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;
}