Skip to content

Commit 492e3c4

Browse files
One more test
1 parent 9863798 commit 492e3c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

crates/ide/src/completion/complete_mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,21 @@ mod tests {
180180
);
181181
}
182182

183+
#[test]
184+
fn no_module_completion_with_module_body() {
185+
check(
186+
r#"
187+
//- /lib.rs
188+
mod <|> {
189+
190+
}
191+
//- /foo.rs
192+
fn foo() {}
193+
"#,
194+
expect![[r#""#]],
195+
);
196+
}
197+
183198
#[test]
184199
fn main_module_completion() {
185200
check(

0 commit comments

Comments
 (0)