We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a1bc0d commit 8ba025eCopy full SHA for 8ba025e
tests/ui/rfcs/rfc-0000-never_patterns/diverges.rs
@@ -1,3 +1,4 @@
1
+// edition: 2018
2
// check-pass
3
#![feature(never_patterns)]
4
#![allow(incomplete_features)]
@@ -27,3 +28,8 @@ fn never_match() -> u32 {
27
28
}
29
println!(); // Ensures this typechecks because of divergence.
30
31
+
32
+// Divergence is not detected but at least nothing weirder happens.
33
+async fn async_never(!: Void) -> u32 {
34
+ 0
35
+}
0 commit comments