Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- struct Hio { mem: i32 }; let hio = Hio { mem: 32 }; println!("{:?}", hio)
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error[E0277]: `main::Hio` doesn't implement `std::fmt::Debug`
- --> src/main.rs:6:78
- |
- 6 | struct Hio { mem: i32 }; let hio = Hio { mem: 32 }; println!("{:?}", hio)
- | ^^^ `main::Hio` cannot be formatted using `{:?}`
- |
- = help: the trait `std::fmt::Debug` is not implemented for `main::Hio`
- = note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
- = note: required by `std::fmt::Debug::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 ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement