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 b231422 commit b93994bCopy full SHA for b93994b
crates/ide/src/hover/tests.rs
@@ -8579,3 +8579,24 @@ fn main(a$0: T) {}
8579
"#]],
8580
);
8581
}
8582
+
8583
+#[test]
8584
+fn hover_fn_ptr_from_generic_with_impl() {
8585
+ check(
8586
+ r#"
8587
+fn bar<const WIDTH: u8>(_: impl Copy) {}
8588
+fn test() {
8589
+ let f$0 = bar::<3>;
8590
+ f(4);
8591
+}
8592
+"#,
8593
+ expect![[r#"
8594
+ *f*
8595
8596
+ ```rust
8597
+ // size = 0, align = 1
8598
+ let f: fn bar<3>(i32)
8599
+ ```
8600
+ "#]],
8601
+ );
8602
0 commit comments