`#[allow(non_camel_case_types)]` only works if applied to the whole enum. If applied to a variant, it does nothing. ``` enum A { #[allow(non_camel_case_types)] B_B } ``` It should either suppress the warning for that variant or give an error or warning that this directive can't be applied in this context.