mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-06 14:27:38 +03:00
Ui tests with compile_error resolved at call site
This commit is contained in:
parent
6735d4b033
commit
b534dafe3b
18 changed files with 88 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
|||
error: transparent error struct can't contain #[source]
|
||||
--> tests/ui/transparent-struct-source.rs:5:18
|
||||
|
|
||||
3 | #[derive(Error, Debug)]
|
||||
| ----- in this derive macro expansion
|
||||
4 | #[error(transparent)]
|
||||
5 | pub struct Error(#[source] anyhow::Error);
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue