rust/src/test/ui/issues/issue-31267-additional.rs

21 lines
247 B
Rust
Raw Normal View History

// run-pass
2016-01-31 13:31:06 -06:00
#[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;
println!("{:?}", foo);
}