]>
git.lizzy.rs Git - rust.git/blobdiff - crates/ide_completion/src/render.rs
fn foo(…) []
"#]],
);
+ check_relevance(
+ r#"
+struct S;
+fn foo(s: &mut S) {}
+fn main() {
+ let mut ssss = S;
+ foo(&mut s$0);
+}
+ "#,
+ expect![[r#"
+ lc ssss [type+local]
+ st S []
+ fn main() []
+ fn foo(…) []
+ "#]],
+ );
}
#[test]