Merge pull request #332 from Manishearth/step_by

added fp test against negative .step_by(_)
This commit is contained in:
llogiq 2015-09-15 09:16:49 +02:00
commit d2a10db7bc

View file

@ -1,4 +1,4 @@
#![feature(plugin)]
#![feature(plugin, step_by)]
#![plugin(clippy)]
use std::collections::*;
@ -71,6 +71,10 @@ fn main() {
println!("{}", i);
}
for i in (10..8).step_by(-1) {
println!("{}", i);
}
let x = 42;
for i in x..10 { // no error, not constant-foldable
println!("{}", i);