Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/tests/generated.rs')
| -rw-r--r-- | crates/ide_assists/src/tests/generated.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 95a68ca989..831f63d476 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs @@ -1304,6 +1304,22 @@ mod foo; } #[test] +fn doctest_move_to_mod_rs() { + check_doc_test( + "move_to_mod_rs", + r#####" +//- /main.rs +mod a; +//- /a.rs +$0fn t() {}$0 +"#####, + r#####" +fn t() {} +"#####, + ) +} + +#[test] fn doctest_pull_assignment_up() { check_doc_test( "pull_assignment_up", |