2011-09-28 14:07:33 -05:00
|
|
|
//error-pattern: lower range bound
|
|
|
|
//error-pattern: non-numeric
|
|
|
|
//error-pattern: mismatched types
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
alt 5u {
|
|
|
|
6u to 1u { }
|
|
|
|
_ { }
|
|
|
|
};
|
|
|
|
|
|
|
|
alt "wow" {
|
2012-07-14 15:55:41 -05:00
|
|
|
"bar" to "foo" { }
|
2011-09-28 14:07:33 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
alt 5u {
|
|
|
|
'c' to 100u { }
|
|
|
|
_ { }
|
|
|
|
};
|
2012-07-14 15:55:41 -05:00
|
|
|
}
|