We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0187c6 commit b2b20d8Copy full SHA for b2b20d8
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 413d97f8bdc1b14aea816eecd755ae278c5f508d
+refs/heads/master: 9375204461a98e2537b4aafc3f779405516b51ec
trunk/src/test/compile-fail/if-without-else-result.rs
@@ -0,0 +1,6 @@
+// error-pattern:`if` without `else` can not produce a result
+
3
+fn main() {
4
+ let a = if true { true };
5
+ log a;
6
+}
0 commit comments