fn u8_deser_throws_when_input_too_large() {
        let serialized = vec![0u8; MAX_U8_ALLOCATION + 1]
            .zcash_serialize_to_vec()
            .expect("Serialization to vec must succeed");
        let cursor = std::io::Cursor::new(serialized);
        let deserialized = <Vec<u8>>::zcash_deserialize(cursor);

        assert!(matches!(
            deserialized,
            Err(SerializationError::Parse(
                "Vector longer than max_allocation"
            ))
        ))
    }
/// Confirm that rejects vectors longer than `MAX_U8_ALLOCATION`
Confirm that rejects vectors longer than `MAX_U8_ALLOCATION`
Confirm that rejects vectors longer than ` MAX_U8_ALLOCATION `
fn u8_deser_throws_when_input_too_large() {
        let serialized = vec![0u8; MAX_U8_ALLOCATION + 1]
            .zcash_serialize_to_vec()
            .expect("Serialization to vec must succeed");
        let cursor = std::io::Cursor::new(serialized);
        let deserialized = <Vec<u8>>::zcash_deserialize(cursor);
        assert!(matches!(
            deserialized,
            Err(SerializationError::Parse(
                "Vector longer than max_allocation"
            ))
        ))
    }
fn u8_deser_throws_when_input_too_large ( ) { let serialized = vec ! [ 0u8 MAX_U8_ALLOCATION 1 ] . zcash_serialize_to_vec ( ) . expect ( " " ) ; let cursor = std :: io :: Cursor :: new ( serialized ) ; let deserialized = < Vec < u8 > > :: zcash_deserialize ( cursor ) ; assert ! ( matches ( deserialized Err ( SerializationError Parse ( " " ) ) ) ) }
Confirm that rejects vectors longer than `MAX_U8_ALLOCATION`
Confirm that rejects vectors longer than ` MAX_U8_ALLOCATION `