2011-09-28 14:07:33 -05:00
|
|
|
//error-pattern: unreachable
|
|
|
|
//error-pattern: unreachable
|
|
|
|
//error-pattern: unreachable
|
|
|
|
//error-pattern: unreachable
|
|
|
|
//error-pattern: unreachable
|
|
|
|
|
|
|
|
fn main() {
|
2012-04-24 04:13:25 -05:00
|
|
|
alt check 5u {
|
2011-09-28 14:07:33 -05:00
|
|
|
1u to 10u { }
|
|
|
|
5u to 6u { }
|
|
|
|
};
|
|
|
|
|
2012-04-24 04:13:25 -05:00
|
|
|
alt check 5u {
|
2011-11-22 04:49:29 -06:00
|
|
|
3u to 6u { }
|
2011-09-28 14:07:33 -05:00
|
|
|
4u to 6u { }
|
|
|
|
};
|
|
|
|
|
2012-04-24 04:13:25 -05:00
|
|
|
alt check 5u {
|
2011-09-28 14:07:33 -05:00
|
|
|
4u to 6u { }
|
2011-11-22 04:49:29 -06:00
|
|
|
4u to 6u { }
|
2011-09-28 14:07:33 -05:00
|
|
|
};
|
|
|
|
|
2012-04-24 04:13:25 -05:00
|
|
|
alt check 'c' {
|
2011-09-28 14:07:33 -05:00
|
|
|
'A' to 'z' {}
|
|
|
|
'a' to 'z' {}
|
|
|
|
};
|
|
|
|
|
2012-04-24 04:13:25 -05:00
|
|
|
alt check 1.0 {
|
2011-09-28 14:07:33 -05:00
|
|
|
0.01 to 6.5 {}
|
2011-11-22 04:49:29 -06:00
|
|
|
0.02 {}
|
2011-09-28 14:07:33 -05:00
|
|
|
};
|
|
|
|
}
|