3 // nb: does not impl Default
4 #[derive(Debug, PartialEq)]
7 #[derive(Debug, Default, PartialEq)]
15 // #[default] on a generic enum does not add `Default` bounds to the type params.
25 assert_eq!(Foo::default(), Foo::Alpha);
26 assert!(matches!(MyOption::<NotDefault>::default(), MyOption::None));