]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2008-non-exhaustive/enum.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / rfc-2008-non-exhaustive / enum.rs
index 73e0b98296bb51998ce222c0cc63ca695af70614..9d2855f5c61666011f536b75d58c8fc2c6777f99 100644 (file)
@@ -30,7 +30,7 @@ fn main() {
     match enum_unit {
         NonExhaustiveEnum::Unit => 1,
         NonExhaustiveEnum::Tuple(_) => 2,
-        // This particular arm tests that a enum marked as non-exhaustive
+        // This particular arm tests that an enum marked as non-exhaustive
         // will not error if its variants are matched exhaustively.
         NonExhaustiveEnum::Struct { field } => field,
         _ => 0 // no error with wildcard