1 error[E0277]: `Error` doesn't implement `Debug`
2 --> $DIR/derives-span-Debug-enum-struct-variant.rs:9:6
5 | ----- in this derive macro expansion
8 | ^^^^^^^^ `Error` cannot be formatted using `{:?}`
10 = help: the trait `Debug` is not implemented for `Error`
11 = note: add `#[derive(Debug)]` to `Error` or manually `impl Debug for Error`
12 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
13 help: consider annotating `Error` with `#[derive(Debug)]`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0277`.