summaryrefslogtreecommitdiffstats
path: root/third_party/rust/enumset/tests/compile-fail-serde/deprecation.rs
blob: 72c19e29db3856cbf982506e0e4bb47f7dc407fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#![deny(deprecated)]

use enumset::*;
use serde_derive::*;

#[derive(Serialize, Deserialize, EnumSetType, Debug)]
#[enumset(serialize_as_map)]
#[serde(crate="enumset::__internal::serde")]
pub enum MapEnum {
    A, B, C, D, E, F, G, H,
}

#[derive(Serialize, Deserialize, EnumSetType, Debug)]
#[enumset(serialize_as_list)]
#[serde(crate="enumset::__internal::serde")]
pub enum ListEnum {
    A, B, C, D, E, F, G, H,
}

fn main() {}