serde/test_suite/tests/ui/conflict/flatten-tuple-struct.stderr
David Tolnay bbba632ab3
Revert "Ui tests with compile_error resolved at call site"
This reverts commit e77db40b8d55f000c04a5e0a42299d373318e1c3.
2023-06-07 20:50:51 -07:00

6 lines
239 B
Plaintext

error: #[serde(flatten)] cannot be used on tuple structs
--> tests/ui/conflict/flatten-tuple-struct.rs:6:17
|
6 | struct Foo(u32, #[serde(flatten)] HashMap<String, String>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^