2017-02-08 10:24:20 -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() {
|
2018-12-02 04:26:09 -06:00
|
|
|
let _foo = Biz::BAZ;
|
2017-02-08 10:24:20 -06:00
|
|
|
}
|