Guest User

Untitled

a guest
Jun 23rd, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. let x: f32 = "0x123".parse().unwrap(); x
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. Finished dev [unoptimized + debuginfo] target(s) in 0.91s
  11. Running `target/debug/playground`
  12. thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseFloatError { kind: Invalid }', libcore/result.rs:945:5
  13. note: Run with `RUST_BACKTRACE=1` for a backtrace.
  14.  
  15. */
  16.  
  17. /* ~~~~=== stdout ===~~~~
  18.  
  19. */
Add Comment
Please, Sign In to add comment