diff options
Diffstat (limited to 'tests/ui/suggestions/issue-83943.fixed')
-rw-r--r-- | tests/ui/suggestions/issue-83943.fixed | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-83943.fixed b/tests/ui/suggestions/issue-83943.fixed new file mode 100644 index 000000000..e0d4ee29e --- /dev/null +++ b/tests/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 + }; +} |