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 05fc97e commit 3bc69f3Copy full SHA for 3bc69f3
crates/ide/src/move_item.rs
@@ -465,6 +465,48 @@ fn main() {}
465
);
466
}
467
468
+ #[test]
469
+ fn test_move_fn_up() {
470
+ check(
471
+ r#"
472
+fn main() {
473
+ println!("Hello, world!");
474
+}
475
+
476
+fn hi$0$0(arg: usize) {}
477
+ "#,
478
+ expect![[r#"
479
+fn hi$0(arg: usize) {}
480
481
482
483
484
+ "#]],
485
+ Direction::Up,
486
+ );
487
+ }
488
489
490
+ fn test_move_fn_down() {
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
+ Direction::Down,
507
508
509
510
#[test]
511
fn test_move_impl_up() {
512
check(
0 commit comments