mirror of https://git.sr.ht/~stygianentity/bincode
17 lines
369 B
Rust
17 lines
369 B
Rust
#![cfg(all(feature = "std", feature = "derive"))]
|
|
|
|
extern crate std;
|
|
|
|
use std::collections::BTreeMap;
|
|
|
|
#[derive(bincode::Decode)]
|
|
struct AllTypes(BTreeMap<u8, AllTypes>);
|
|
|
|
#[test]
|
|
fn test_issue_467() {
|
|
let _result: Result<(AllTypes, _), _> = bincode::decode_from_slice(
|
|
&[],
|
|
bincode::config::Configuration::standard().with_limit::<1024>(),
|
|
);
|
|
}
|