From 6ab55a1e523d21059ae1da630c2179c2eb2b725c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 27 Mar 2023 21:59:55 -0700 Subject: [PATCH] Add regression test for issue 2415 Currently fails: error: unexpected end of input, unexpected token in nested attribute, expected ident --> test_suite/tests/regression/issue2415.rs:4:9 | 4 | #[serde()] | ^ --- test_suite/tests/regression/issue2415.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test_suite/tests/regression/issue2415.rs diff --git a/test_suite/tests/regression/issue2415.rs b/test_suite/tests/regression/issue2415.rs new file mode 100644 index 000000000..31c522709 --- /dev/null +++ b/test_suite/tests/regression/issue2415.rs @@ -0,0 +1,5 @@ +use serde_derive::Serialize; + +#[derive(Serialize)] +#[serde()] +pub struct S;