error[E0277]: `Foo` doesn't implement `Debug`
--> tests/ui/fail/missing_debug.rs:2:10
|
2 | pub enum Foo {
| ^^^ the trait `Debug` is not implemented for `Foo`
|
= note: add `#[derive(Debug)]` to `Foo` or manually `impl Debug for Foo`
note: required by a bound in `std::error::Error`
--> $RUST/core/src/error.rs
help: consider annotating `Foo` with `#[derive(Debug)]`
|
2 + #[derive(Debug)]
3 | pub enum Foo {
|
error[E0277]: `Foo` doesn't implement `Debug`
--> tests/ui/fail/missing_debug.rs:2:10
|
2 | pub enum Foo {
| ^^^ the trait `Debug` is not implemented for `Foo`
|
= note: add `#[derive(Debug)]` to `Foo` or manually `impl Debug for Foo`
help: the trait `std::error::Error` is not implemented for `Foo`
but trait `Error` is implemented for it
--> tests/ui/fail/missing_debug.rs:1:10
|
1 | #[derive(aerro::Aerro)]
| ^^^^^^^^^^^^
= note: required for `Foo` to implement `std::error::Error`
note: required by a bound in `Aerro`
--> src/traits/aerro.rs
|
| pub trait Aerro: std::error::Error + Send + Sync + 'static {
| ^^^^^^^^^^^^^^^^^ required by this bound in `Aerro`
= note: this error originates in the derive macro `aerro::Aerro` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `Foo` with `#[derive(Debug)]`
|
2 + #[derive(Debug)]
3 | pub enum Foo {
|