summaryrefslogtreecommitdiffstats
path: root/third_party/rust/num-derive/tests/issue-16.rs
blob: 48cc2fbf8e83a7d0b26763cce4eac4386431ac8f (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! get_an_isize {
    () => {
        0_isize
    };
}

#[derive(num_derive::FromPrimitive)]
pub enum CLikeEnum {
    VarA = get_an_isize!(),
    VarB = 2,
}