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