From e29056d741a13f93e9b7bf3ba14b7999c3d62690 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 7 Oct 2024 15:55:10 +0200 Subject: [PATCH] fixed a typo in `NoneExhaustiveFieldlessUnit` (#965) --- test_crates/struct_becomes_enum/new/src/lib.rs | 2 +- test_crates/struct_becomes_enum/old/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_crates/struct_becomes_enum/new/src/lib.rs b/test_crates/struct_becomes_enum/new/src/lib.rs index 289d521b..67dedebc 100644 --- a/test_crates/struct_becomes_enum/new/src/lib.rs +++ b/test_crates/struct_becomes_enum/new/src/lib.rs @@ -92,7 +92,7 @@ impl NonExhaustiveEmptyStructToEnum { // The following structs are also not externally-constructible due to `#[non_exhaustive]`. #[non_exhaustive] -pub enum NoneExhaustiveFieldlessUnit { +pub enum NonExhaustiveFieldlessUnit { Var, } diff --git a/test_crates/struct_becomes_enum/old/src/lib.rs b/test_crates/struct_becomes_enum/old/src/lib.rs index 4cf3a0c2..85a269cb 100644 --- a/test_crates/struct_becomes_enum/old/src/lib.rs +++ b/test_crates/struct_becomes_enum/old/src/lib.rs @@ -92,7 +92,7 @@ impl NonExhaustiveEmptyStructToEnum { // The following structs are also not externally-constructible due to `#[non_exhaustive]`. #[non_exhaustive] -pub struct NoneExhaustiveFieldlessUnit; +pub struct NonExhaustiveFieldlessUnit; #[non_exhaustive] pub struct NonExhaustiveFieldlessTuple();