2012-03-24 21:59:16 -07:00
|
|
|
fn main() {
|
|
|
|
// sometimes we have had trouble finding
|
|
|
|
// the right type for f, as we unified
|
|
|
|
// bot and u32 here
|
2012-08-06 12:34:08 -07:00
|
|
|
let f = match uint::from_str(~"1234") {
|
2012-08-03 19:59:04 -07:00
|
|
|
none => return (),
|
|
|
|
some(num) => num as u32
|
2012-03-24 21:59:16 -07:00
|
|
|
};
|
|
|
|
assert f == 1234u32;
|
|
|
|
log(error, f)
|
|
|
|
}
|