mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-07 06:47:38 +03:00
Reject source attribute not on a field
This commit is contained in:
parent
7c9dcaebbc
commit
10d1f640da
3 changed files with 26 additions and 0 deletions
5
tests/ui/unexpected-struct-source.stderr
Normal file
5
tests/ui/unexpected-struct-source.stderr
Normal file
|
@ -0,0 +1,5 @@
|
|||
error: not expected here; the #[source] attribute belongs on a specific field
|
||||
--> $DIR/unexpected-struct-source.rs:4:1
|
||||
|
|
||||
4 | #[source]
|
||||
| ^^^^^^^^^
|
Loading…
Add table
Add a link
Reference in a new issue