fix some typos in !-related test comments
This commit is contained in:
parent
2fcbda6c1a
commit
5d33ab1316
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue