Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- #[derive(Debug)] struct Struct where Struct: Debug {}
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0405]: cannot find trait `Debug` in this scope
- --> src/main.rs:5:54
- |
- 5 | #[derive(Debug)] struct Struct where Struct: Debug {}
- | ^^^^^ not found in this scope
- help: possible candidate is found in another module, you can import it into scope
- |
- 3 | use std::fmt::Debug;
- |
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0405`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment