penum 0.1.30

Make enum conform to a given pattern
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(dead_code)]
extern crate penum;
// use penum::penum;

trait Trait {}
trait Random {}

// TODO: This doesn't work, please fix
//       message: `"dyn Trait"` is not a valid identifier
// impl Random for dyn Trait {}
// #[penum((T) where dyn Trait: Random )]
// enum Foo<'a> {
//     Bar(&'a dyn Trait),
// }

fn main() {}