summary refs log tree commit diff
path: root/src/test/ui/consts/issue-67529.rs
blob: df4bc668bee176d5276bd3e0cd599003f9fcecec (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: -Z mir-opt-level=2
// run-pass

struct Baz<T: ?Sized> {
    a: T
}

fn main() {
    let d : Baz<[i32; 4]> = Baz { a: [1,2,3,4] };
    assert_eq!([1, 2, 3, 4], d.a);
}