Reject source attribute not on a field

This commit is contained in:
David Tolnay 2019-10-12 13:35:25 -07:00
parent 7c9dcaebbc
commit 10d1f640da
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 26 additions and 0 deletions

View 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]
| ^^^^^^^^^