Skip to content

Commit 1b058b7

Browse files
authored
Add a test case
1 parent a2555b9 commit 1b058b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/tests/regression.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,8 @@ fn test() {
20512051
// ^ Wrap<'?, ()>
20522052
let x = S::foo::<&()>(&S);
20532053
// ^ Wrap<'?, ()>
2054+
let x = S.foo::<'static, &()>();
2055+
// ^ Wrap<'?, ()>
20542056
let x = S.foo::<&()>();
20552057
// ^ Wrap<'?, ()>
20562058
}

0 commit comments

Comments
 (0)