blob: b71e1149613886771665ac017219370b8cec8cbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// run-pass
use std::default::Default;
#[derive(Default)]
struct A {
foo: Box<[bool]>,
}
pub fn main() {
let a: A = Default::default();
let b: Box<[_]> = Box::<[bool; 0]>::new([]);
assert_eq!(a.foo, b);
}
|