381205b747
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
38 lines
547 B
Rust
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 {}
|
|
};
|
|
} |