Closed Caisin closed 3 days ago
#[derive(Debug, Serialize, Deserialize)] pub struct TestDeErr { b: Vec<String>, c: String, } #[test] fn test_de_err() -> anyhow::Result<()> { let o = quick_xml::de::from_str::<TestDeErr>( r#" <a> <b>b</b> <c>c</c> <b>b</b> </a> "#, )?; println!("{o:#?}"); Ok(()) }
Error: duplicate field `b`
Enable overlapped-lists feature.
overlapped-lists
this code will Deserialize fail