We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
!
1 parent 2fcbda6 commit 5d33ab1Copy full SHA for 5d33ab1
tests/mir-opt/uninhabited_not_read.rs
@@ -1,7 +1,7 @@
1
// skip-filecheck
2
3
//@ edition: 2021
4
-// In ed 2021 and below, we don't fallback `!` to `()`.
+// In ed 2021 and below, we fallback `!` to `()`.
5
// This would introduce a `! -> ()` coercion which would
6
// be UB if we didn't disallow this explicitly.
7
tests/ui/consts/const-eval/raw-bytes.rs
@@ -34,7 +34,7 @@ const BAD_ENUM2: Enum2 = unsafe { mem::transmute(0usize) };
34
#[derive(Copy, Clone)]
35
enum Never {}
36
37
-// 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*
38
// have a discriminant.
39
enum UninhDiscriminant {
40
A,
0 commit comments