You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/ui/rfcs/rfc-0000-never_patterns/diverge-causes-unreachable-code.stderr
+12-1
Original file line number
Diff line number
Diff line change
@@ -42,5 +42,16 @@ LL | match *ptr { ! };
42
42
| |
43
43
| this expression has type `Void`, which is uninhabited
44
44
45
-
error: aborting due to 4 previous errors
45
+
error: unreachable statement
46
+
--> $DIR/diverge-causes-unreachable-code.rs:34:5
47
+
|
48
+
LL | match *ptr { ! };
49
+
| ---------------- any code following this `match` expression is unreachable, as all arms diverge
50
+
LL | }
51
+
LL | println!();
52
+
| ^^^^^^^^^^ unreachable statement
53
+
|
54
+
= note: this error originates in the macro `$crate::print` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments