Improve error on malformed format attribute

This commit is contained in:
David Tolnay 2024-10-31 14:25:18 -07:00
parent 003a89fc01
commit 5d3edf9d7e
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
2 changed files with 9 additions and 5 deletions

View file

@ -1,4 +1,4 @@
error: expected string literal
error: expected string literal or `transparent`
--> tests/ui/concat-display.rs:8:17
|
8 | #[error(concat!("invalid ", $what))]