Closed MaxVerevkin closed 1 year ago
use smart_default::SmartDefault; fn main() { dbg!(S::default()); } #[derive(Debug, SmartDefault)] struct S { #[default(1)] // works i: i32, #[default(true)] // error: Expected single value in #[default(...)] b: bool, }
Have similar error with #[default(Coloring::Auto)] attribute.
#[default(Coloring::Auto)]
The regression popped up here, the error migrated to another if branch, causing to fire early.
if