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 ae7de29 commit f6702ddCopy full SHA for f6702dd
crates/ide/src/folding_ranges.rs
@@ -457,4 +457,24 @@ calling_function(x,y);
457
"#,
458
)
459
}
460
+
461
+ #[test]
462
+ fn fold_consecutive_const() {
463
+ check(
464
+ r#"
465
+<fold consts>const FIRST_CONST: &str = "first";
466
+const SECOND_CONST: &str = "second";</fold>
467
+ "#,
468
+ )
469
+ }
470
471
472
+ fn fold_consecutive_static() {
473
474
475
+<fold consts>static FIRST_STATIC: &str = "first";
476
+static SECOND_STATIC: &str = "second";</fold>
477
478
479
480
0 commit comments