18 lines
208 B
Rust
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;
|
|
}
|