We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fb5e71 commit 117ef22Copy full SHA for 117ef22
test_suite/tests/ui/malformed/str_suffix.rs
@@ -0,0 +1,10 @@
1
+use serde::Serialize;
2
+
3
+#[derive(Serialize)]
4
+#[serde(bound = ""huh)]
5
+pub struct Struct {
6
+ #[serde(rename = ""what)]
7
+ pub field: i32,
8
+}
9
10
+fn main() {}
test_suite/tests/ui/malformed/str_suffix.stderr
@@ -0,0 +1,11 @@
+error: unexpected suffix `huh` on string literal
+ --> tests/ui/malformed/str_suffix.rs:4:17
+ |
+4 | #[serde(bound = ""huh)]
+ | ^^^^^
+error: unexpected suffix `what` on string literal
+ --> tests/ui/malformed/str_suffix.rs:6:22
+6 | #[serde(rename = ""what)]
11
+ | ^^^^^^
0 commit comments