summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-83943.fixed
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/suggestions/issue-83943.fixed9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/issue-83943.fixed b/src/test/ui/suggestions/issue-83943.fixed
new file mode 100644
index 000000000..e0d4ee29e
--- /dev/null
+++ b/src/test/ui/suggestions/issue-83943.fixed
@@ -0,0 +1,9 @@
+// run-rustfix
+
+fn main() {
+ if true {
+ "A".to_string()
+ } else {
+ "B".to_string() //~ ERROR `if` and `else` have incompatible types
+ };
+}