mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
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;
|
|
}
|