]> git.lizzy.rs Git - rust.git/commitdiff
Test for correct amount of emitted folds
authorAyomide Bamidele <48062697+MozarellaMan@users.noreply.github.com>
Fri, 28 May 2021 12:10:41 +0000 (13:10 +0100)
committerAyomide Bamidele <48062697+MozarellaMan@users.noreply.github.com>
Fri, 28 May 2021 12:10:41 +0000 (13:10 +0100)
crates/ide/src/folding_ranges.rs

index ce8473d942a9bfee6304b973b6063d7040e267e1..c5015a34555fad7c9b33e7eeaf34028ef9ef46a2 100755 (executable)
@@ -572,6 +572,8 @@ fn foo()<fold returntype>-> (
     bool,
     bool,
 )</fold> { (true, true) }
+
+fn bar() -> (bool, bool) { (true, true) }
             "#,
         )
     }