1
Fork 0

Disallow #[default] Variant {} regardless of feature flag

This commit is contained in:
Esteban Küber 2024-12-06 19:50:55 +00:00
parent 148a77dfde
commit 2d6e763cc6
5 changed files with 38 additions and 11 deletions

View file

@ -424,6 +424,7 @@ pub(crate) struct MultipleDefaultsSugg {
pub(crate) struct NonUnitDefault {
#[primary_span]
pub(crate) span: Span,
pub(crate) post: &'static str,
}
#[derive(Diagnostic)]