use musli::alloc::{Global, String};
use musli::value::Value;
use musli::{Allocator, Decode, Encode};
#[derive(Encode, Decode)]
struct GlobalValue {
value: Value<Global>,
}
#[derive(Encode, Decode)]
struct GlobalString {
string: String<Global>,
}
#[derive(Encode, Decode)]
#[musli(global, allocator = Global)]
struct BothAttributes {
value: Value<Global>,
}
#[derive(Encode, Decode)]
#[musli(global)]
struct AlreadyGeneric<A>
where
A: Allocator,
{
value: Value<A>,
}
#[derive(Encode, Decode)]
#[musli(Binary, global, decode_bound<'de, A> = {})]
struct NamedAllocator {
value: Value<Global>,
}
fn main() {}