We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8c54d6 commit 9f49700Copy full SHA for 9f49700
tests/pretty/never-pattern.pp
@@ -0,0 +1,18 @@
1
+#![feature(prelude_import)]
2
+#![no_std]
3
+//@ pretty-mode:expanded
4
+//@ pp-exact:never-pattern.pp
5
+//@ only-x86_64
6
+
7
+#![allow(incomplete_features)]
8
+#![feature(never_patterns)]
9
+#![feature(never_type)]
10
+#[prelude_import]
11
+use ::std::prelude::rust_2015::*;
12
+#[macro_use]
13
+extern crate std;
14
15
+fn f(x: Result<u32, !>) {
16
+ _ = match x { Ok(x) => x, Err(!) , }; }
17
18
+ fn main() {}
tests/pretty/never-pattern.rs
@@ -0,0 +1,16 @@
+ _ = match x {
+ Ok(x) => x,
+ Err(!),
+ };
+}
+fn main() {}
0 commit comments