From a8717301428a53ea159d1b42d7c9bd0a6807f30b Mon Sep 17 00:00:00 2001 From: Shoyu Vanilla Date: Wed, 31 Jul 2024 10:47:13 +0900 Subject: [PATCH] Add a test case --- crates/hir-ty/src/tests/regression.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/hir-ty/src/tests/regression.rs b/crates/hir-ty/src/tests/regression.rs index 540e219920..b371e5856b 100644 --- a/crates/hir-ty/src/tests/regression.rs +++ b/crates/hir-ty/src/tests/regression.rs @@ -2051,6 +2051,8 @@ fn test() { // ^ Wrap<'?, ()> let x = S::foo::<&()>(&S); // ^ Wrap<'?, ()> + let x = S.foo::<'static, &()>(); + // ^ Wrap<'?, ()> let x = S.foo::<&()>(); // ^ Wrap<'?, ()> }