]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass/range_inclusive_gate.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / run-pass / range_inclusive_gate.rs
CommitLineData
0bf4aa26 1#![allow(unused_comparisons)]
54a0048b 2// Test that you only need the syntax gate if you don't mention the structs.
0531ce1d 3// (Obsoleted since both features are stabilized)
223e47cc 4
d9579d0f 5fn main() {
54a0048b 6 let mut count = 0;
ea8adc8c 7 for i in 0_usize..=10 {
54a0048b
SL
8 assert!(i >= 0 && i <= 10);
9 count += i;
d9579d0f 10 }
54a0048b 11 assert_eq!(count, 55);
c34b1796 12}
54a0048b 13