fix some typos in !-related test comments

This commit is contained in:
Waffle Lapkin 2025-11-13 16:17:52 +01:00
parent 2fcbda6c1a
commit 5d33ab1316
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
// skip-filecheck
//@ edition: 2021
// In ed 2021 and below, we don't fallback `!` to `()`.
// In ed 2021 and below, we fallback `!` to `()`.
// This would introduce a `! -> ()` coercion which would
// be UB if we didn't disallow this explicitly.

View file

@ -34,7 +34,7 @@ const BAD_ENUM2: Enum2 = unsafe { mem::transmute(0usize) };
#[derive(Copy, Clone)]
enum Never {}
// An enum with 3 variants of which some are uninhabited -- so the uninhabited variants *do*
// An enum with 4 variants of which only some are uninhabited -- so the uninhabited variants *do*
// have a discriminant.
enum UninhDiscriminant {
A,