mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-05 05:47:39 +03:00
10 lines
374 B
Text
10 lines
374 B
Text
error: transparent variant can't contain #[source]
|
|
--> tests/ui/transparent-enum-source.rs:6:11
|
|
|
|
|
3 | #[derive(Error, Debug)]
|
|
| ----- in this derive macro expansion
|
|
...
|
|
6 | Other(#[source] anyhow::Error),
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)
|