Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- let x = 4; let y = &x; println!("{:p} {:p} {}", x, y, y);
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0277]: the trait bound `{integer}: std::fmt::Pointer` is not satisfied
- --> src/main.rs:5:57
- |
- 5 | let x = 4; let y = &x; println!("{:p} {:p} {}", x, y, y);
- | ^ the trait `std::fmt::Pointer` is not implemented for `{integer}`
- |
- = help: the following implementations were found:
- <&'a mut T as std::fmt::Pointer>
- <&'a T as std::fmt::Pointer>
- <fn(A) -> Ret as std::fmt::Pointer>
- <unsafe extern "C" fn(A) -> Ret as std::fmt::Pointer>
- and 84 others
- = note: required by `std::fmt::Pointer::fmt`
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0277`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment