2016-01-13 00:28:29 -06:00
|
|
|
// Make sure that inclusive ranges with no end point don't parse.
|
|
|
|
|
|
|
|
pub fn main() {
|
2017-09-19 00:40:04 -05:00
|
|
|
for _ in 1..= {} //~ERROR inclusive range with no end
|
2020-01-10 23:49:43 -06:00
|
|
|
//~^HELP use `..` instead
|
2016-03-15 12:03:42 -05:00
|
|
|
}
|