Guest User

Untitled

a guest
Jun 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. let x: Result<f32_> = "0x123".parse(); x
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0412]: cannot find type `f32_` in this scope
  11. --> src/main.rs:5:23
  12. |
  13. 5 | let x: Result<f32_> = "0x123".parse(); x
  14. | ^^^^ did you mean `f32`?
  15.  
  16. error[E0243]: wrong number of type arguments: expected 2, found 1
  17. --> src/main.rs:5:16
  18. |
  19. 5 | let x: Result<f32_> = "0x123".parse(); x
  20. | ^^^^^^^^^^^^ expected 2 type arguments
  21.  
  22. error: aborting due to 2 previous errors
  23.  
  24. Some errors occurred: E0243, E0412.
  25. For more information about an error, try `rustc --explain E0243`.
  26. error: Could not compile `playground`.
  27.  
  28. To learn more, run the command again with --verbose.
  29.  
  30. */
  31.  
  32. /* ~~~~=== stdout ===~~~~
  33.  
  34. */
Add Comment
Please, Sign In to add comment