add test that was failing from tedh
This commit is contained in:
parent
7ae757ff1a
commit
ac4294a176
1 changed files with 11 additions and 0 deletions
11
src/test/run-pass/alt-with-ret-arm.rs
Normal file
11
src/test/run-pass/alt-with-ret-arm.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fn main() {
|
||||
// sometimes we have had trouble finding
|
||||
// the right type for f, as we unified
|
||||
// bot and u32 here
|
||||
let f = alt uint::from_str("1234") {
|
||||
none { ret () }
|
||||
some(num) { num as u32 }
|
||||
};
|
||||
assert f == 1234u32;
|
||||
log(error, f)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue