2023-03-16 02:11:35 -05:00
|
|
|
error: unexpected literal in nested attribute, expected ident
|
2021-10-08 01:46:15 -05:00
|
|
|
--> tests/ui/unexpected-literal/variant.rs:5:13
|
2018-11-29 19:07:31 -06:00
|
|
|
|
|
2023-06-07 22:02:04 -05:00
|
|
|
3 | #[derive(Serialize)]
|
|
|
|
| --------- in this derive macro expansion
|
|
|
|
4 | enum E {
|
2018-12-31 20:36:59 -06:00
|
|
|
5 | #[serde("literal")]
|
2018-11-29 19:07:31 -06:00
|
|
|
| ^^^^^^^^^
|
2023-06-07 22:02:04 -05:00
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
|