summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mir-unpretty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/mir-unpretty.rs')
-rw-r--r--src/test/ui/mir-unpretty.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/mir-unpretty.rs b/src/test/ui/mir-unpretty.rs
new file mode 100644
index 000000000..30620c69f
--- /dev/null
+++ b/src/test/ui/mir-unpretty.rs
@@ -0,0 +1,5 @@
+// compile-flags: -Z unpretty=mir
+
+fn main() {
+ let x: () = 0; //~ ERROR: mismatched types
+}