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 70157f0 commit 6ae4c70Copy full SHA for 6ae4c70
crates/ide/src/completion.rs
@@ -233,12 +233,28 @@ mod tests {
233
234
#[test]
235
fn test_no_completions_required() {
236
+ // There must be no hint for 'in' keyword.
237
check_no_completion(
238
r#"
239
fn foo() {
240
for i i<|>
241
}
242
"#,
- )
243
+ );
244
+ // After 'in' keyword hints may be spawned.
245
+ check_detail_and_documentation(
246
+ r#"
247
+ /// Do the foo
248
+ fn foo() -> &'static str { "foo" }
249
+
250
+ fn bar() {
251
+ for c in fo<|>
252
+ }
253
+ "#,
254
+ DetailAndDocumentation {
255
+ detail: "fn foo() -> &'static str",
256
+ documentation: "Do the foo",
257
+ },
258
259
260
0 commit comments