Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- let x: f32 = "0x123".parse().unwrap(); x
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- Finished dev [unoptimized + debuginfo] target(s) in 0.91s
- Running `target/debug/playground`
- thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseFloatError { kind: Invalid }', libcore/result.rs:945:5
- note: Run with `RUST_BACKTRACE=1` for a backtrace.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment