1error: not expected here; the #[error(...)] attribute belongs on top of a struct or an enum variant
2 --> tests/ui/unexpected-field-fmt.rs:6:9
3  |
46 |         #[error("...")]
5  |         ^^^^^^^^^^^^^^^
6