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 9863798 commit 492e3c4Copy full SHA for 492e3c4
crates/ide/src/completion/complete_mod.rs
@@ -180,6 +180,21 @@ mod tests {
180
);
181
}
182
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
198
#[test]
199
fn main_module_completion() {
200
check(
0 commit comments