2018-09-14 05:20:28 -05:00
|
|
|
#![allow(unused_comparisons)]
|
2016-01-13 00:28:29 -06:00
|
|
|
// Test that you only need the syntax gate if you don't mention the structs.
|
2018-01-27 13:19:29 -06:00
|
|
|
// (Obsoleted since both features are stabilized)
|
2016-01-13 00:28:29 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut count = 0;
|
2017-09-19 00:40:04 -05:00
|
|
|
for i in 0_usize..=10 {
|
2016-01-13 00:28:29 -06:00
|
|
|
assert!(i >= 0 && i <= 10);
|
|
|
|
count += i;
|
|
|
|
}
|
|
|
|
assert_eq!(count, 55);
|
|
|
|
}
|