]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range_inclusive_gate.rs
Rollup merge of #68253 - japaric:bare-metal-cortex-a, r=alexcrichton
[rust.git] / src / test / ui / range_inclusive_gate.rs
1 // run-pass
2
3 #![allow(unused_comparisons)]
4 // Test that you only need the syntax gate if you don't mention the structs.
5 // (Obsoleted since both features are stabilized)
6
7 fn main() {
8     let mut count = 0;
9     for i in 0_usize..=10 {
10         assert!(i >= 0 && i <= 10);
11         count += i;
12     }
13     assert_eq!(count, 55);
14 }