Skip to content

Commit

Permalink
WIP: Not sure why the compiler can't see the strum attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Sep 19, 2018
1 parent 7a1bc01 commit 429040a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions strum_tests/tests/enum_discriminants.rs
Expand Up @@ -68,3 +68,19 @@ fn complicated_test() {

assert_eq!(expected, discriminants);
}

// #[allow(dead_code)]
// #[derive(Debug, EnumDiscriminants)]
// enum WithDefault {
// #[strum(default = "true")]
// A(String),
// B,
// }

// #[test]
// fn with_default_test() {
// assert_eq!(
// WithDefaultDiscriminants::A,
// WithDefaultDiscriminants::default()
// );
// }

0 comments on commit 429040a

Please sign in to comment.