diff --git a/crates/ide/src/folding_ranges.rs b/crates/ide/src/folding_ranges.rs index 4b1b2456283..379ee56502e 100644 --- a/crates/ide/src/folding_ranges.rs +++ b/crates/ide/src/folding_ranges.rs @@ -457,4 +457,24 @@ calling_function(x,y); "#, ) } + + #[test] + fn fold_consecutive_const() { + check( + r#" +const FIRST_CONST: &str = "first"; +const SECOND_CONST: &str = "second"; + "#, + ) + } + + #[test] + fn fold_consecutive_static() { + check( + r#" +static FIRST_STATIC: &str = "first"; +static SECOND_STATIC: &str = "second"; + "#, + ) + } }