1 2 3 4 5 6 7 8 9
struct S; fn main() { let b = [0; S]; //~^ ERROR mismatched types //~| expected type `usize` //~| found type `S` //~| expected usize, found struct `S` }