rust/src/test/compile-fail/alt-range-fail-dominate.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

38 lines
547 B
Rust

//error-pattern: unreachable
//error-pattern: unreachable
//error-pattern: unreachable
//error-pattern: unreachable
//error-pattern: unreachable
//error-pattern: unreachable
fn main() {
alt 5u {
1u to 10u { }
5u to 6u { }
};
alt 5u {
4u to 6u { }
3u to 5u { }
};
alt 5u {
4u to 6u { }
5u to 7u { }
};
alt 'c' {
'A' to 'z' {}
'a' to 'z' {}
};
alt 1.0 {
-5.0 to 5.0 {}
0.0 to 6.5 {}
};
alt 1.0 {
0.02 {}
0.01 to 6.5 {}
};
}