Guest User

Untitled

a guest
Jul 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. format!("{:E}", 10)
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0277]: the trait bound `{integer}: std::fmt::UpperExp` is not satisfied
  11. --> src/main.rs:5:25
  12. |
  13. 5 | format!("{:E}", 10)
  14. | ^^ the trait `std::fmt::UpperExp` is not implemented for `{integer}`
  15. |
  16. = help: the following implementations were found:
  17. <&'a T as std::fmt::UpperExp>
  18. <&'a mut T as std::fmt::UpperExp>
  19. <f32 as std::fmt::UpperExp>
  20. <f64 as std::fmt::UpperExp>
  21. = note: required by `std::fmt::UpperExp::fmt`
  22.  
  23. error: aborting due to previous error
  24.  
  25. For more information about this error, try `rustc --explain E0277`.
  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