From 6d3b2d24c1ea7eea14b2f4d697fde25be14a70e5 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 7 Oct 2024 13:55:35 +0200 Subject: [PATCH] fixed a typo in `NoneExhaustiveFieldlessUnit` --- 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();