1 error: an inclusive range would be more readable
2 --> $DIR/range_plus_minus_one.rs:12:14
4 12 | for _ in 0..3+1 { }
8 | in this macro invocation
10 = note: `-D range-plus-one` implied by `-D warnings`
12 error: an inclusive range would be more readable
13 --> $DIR/range_plus_minus_one.rs:15:14
15 15 | for _ in 0..1+5 { }
19 | in this macro invocation
21 error: an inclusive range would be more readable
22 --> $DIR/range_plus_minus_one.rs:18:14
24 18 | for _ in 1..1+1 { }
28 | in this macro invocation
30 error: an inclusive range would be more readable
31 --> $DIR/range_plus_minus_one.rs:24:14
33 24 | for _ in 0..(1+f()) { }
36 | help: use: `0..=f()`
37 | in this macro invocation
39 error: an exclusive range would be more readable
40 --> $DIR/range_plus_minus_one.rs:28:13
46 | in this macro invocation
48 = note: `-D range-minus-one` implied by `-D warnings`
50 error: an exclusive range would be more readable
51 --> $DIR/range_plus_minus_one.rs:29:13
53 29 | let _ = ..=(11-1);
57 | in this macro invocation
59 error: an inclusive range would be more readable
60 --> $DIR/range_plus_minus_one.rs:30:13
62 30 | let _ = (f()+1)..(f()+1);
65 | help: use: `(f()+1)..=f()`
66 | in this macro invocation