381205b747
This reverts commit a034f87146e60e1db2327c6f6807c47406a1bb0b. 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
19 lines
268 B
Rust
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 { }
|
|
_ { }
|
|
};
|
|
} |