Fix Bytes doctest
@@ -1349,6 +1349,7 @@ pub struct TimestampNanoSecondsWithFrac<
/// # #[derive(Debug, PartialEq)]
/// #[derive(Deserialize, Serialize)]
/// struct Test<'a> {
+/// # #[cfg(FALSE)]
/// #[serde_as(as = "Bytes")]
/// array: [u8; 15],
/// #[serde_as(as = "Bytes")]
@@ -1361,6 +1362,7 @@ pub struct TimestampNanoSecondsWithFrac<
/// }
///
/// let value = Test {
+/// # #[cfg(FALSE)]
/// array: b"0123456789ABCDE".clone(),
/// boxed: b"...".to_vec().into_boxed_slice(),
/// cow: Cow::Borrowed(b"FooBar"),
@@ -1372,6 +1374,13 @@ pub struct TimestampNanoSecondsWithFrac<
/// cow: "Rm9vQmFy",
/// vec: "QWEh",
/// )"#;
+/// # drop(expected);
+/// # // Create a fake expected value without the array to make the test compile without const generics
+/// # let expected = r#"(
+/// # boxed: "Li4u",
+/// # cow: "Rm9vQmFy",
+/// # vec: "QWEh",
+/// # )"#;
///
/// # let pretty_config = ron::ser::PrettyConfig::new()
/// # .with_new_line("\n".into());
