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