3 # Corrupted initialization in the static struct
5 ...should print &[1, 2, 3] but instead prints something like
6 &[4492532864, 24]. It is pretty evident that the compiler messed up
7 with the representation of [isize; n] and [isize] somehow, or at least
8 failed to typecheck correctly.
11 #[derive(Copy, Clone)]
12 struct X { vec: &'static [isize] }
14 static V
: &'
static [X
] = &[X { vec: &[1, 2, 3] }
];
18 println
!("{:?}", v
.vec
);