Guest User

Untitled

a guest
Jun 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. let x = 4; let y = &x; println!("{:p} {:p} {}", x, y, y);
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0277]: the trait bound `{integer}: std::fmt::Pointer` is not satisfied
  11. --> src/main.rs:5:57
  12. |
  13. 5 | let x = 4; let y = &x; println!("{:p} {:p} {}", x, y, y);
  14. | ^ the trait `std::fmt::Pointer` is not implemented for `{integer}`
  15. |
  16. = help: the following implementations were found:
  17. <&'a mut T as std::fmt::Pointer>
  18. <&'a T as std::fmt::Pointer>
  19. <fn(A) -> Ret as std::fmt::Pointer>
  20. <unsafe extern "C" fn(A) -> Ret as std::fmt::Pointer>
  21. and 84 others
  22. = note: required by `std::fmt::Pointer::fmt`
  23.  
  24. error: aborting due to previous error
  25.  
  26. For more information about this error, try `rustc --explain E0277`.
  27. error: Could not compile `playground`.
  28.  
  29. To learn more, run the command again with --verbose.
  30.  
  31. */
  32.  
  33. /* ~~~~=== stdout ===~~~~
  34.  
  35. */
Add Comment
Please, Sign In to add comment