rust/src/test/compile-fail/alt-range-fail.rs
Brian Anderson 381205b747 Revert "Revert "Implement pattern ranges for all numeric types.""
This reverts commit a034f87146.

Conflicts:

	src/comp/middle/check_alt.rs
	src/comp/middle/trans_alt.rs
	src/comp/syntax/ast.rs
	src/comp/syntax/ast_util.rs
	src/comp/syntax/fold.rs
	src/comp/syntax/print/pprust.rs

Conflicts:

	src/comp/middle/trans_alt.rs
2011-09-28 12:46:29 -07:00

19 lines
268 B
Rust

//error-pattern: lower range bound
//error-pattern: non-numeric
//error-pattern: mismatched types
fn main() {
alt 5u {
6u to 1u { }
_ { }
};
alt "wow" {
"wow" to "woow" { }
};
alt 5u {
'c' to 100u { }
_ { }
};
}