1 // Test range syntax - type errors.
6 //~^ ERROR mismatched types
8 // Bool => does not implement iterator.
9 for i in false..true {}
10 //~^ ERROR `bool: Step` is not satisfied
13 let arr: &[_] = &[1, 2, 3];
15 //~^ ERROR the size for values of type