about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/issues/issue-31267-additional.rs
blob: f6d7209369b7078d0800f61910c35f4fac3dd385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[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;
}