Skip to content

Commit 8ba025e

Browse files
committed
Test async fn
1 parent 0a1bc0d commit 8ba025e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/ui/rfcs/rfc-0000-never_patterns/diverges.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// edition: 2018
12
// check-pass
23
#![feature(never_patterns)]
34
#![allow(incomplete_features)]
@@ -27,3 +28,8 @@ fn never_match() -> u32 {
2728
}
2829
println!(); // Ensures this typechecks because of divergence.
2930
}
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

Comments
 (0)