mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
11 lines
187 B
Rust
11 lines
187 B
Rust
//@ compile-flags: -Z mir-opt-level=3
|
|
//@ 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);
|
|
}
|