about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShoyu Vanilla <modulo641@gmail.com>2024-07-31 10:47:13 +0900
committerGitHub <noreply@github.com>2024-07-31 10:47:13 +0900
commit1b058b796d5b711a13ec6918ea5a96f7031c6a5f (patch)
treec103e3119ed5436abb832d6bec63433d657c8e7a
parenta2555b976ac8994ede5f148d91a8751550e3ba03 (diff)
downloadrust-1b058b796d5b711a13ec6918ea5a96f7031c6a5f.tar.gz
rust-1b058b796d5b711a13ec6918ea5a96f7031c6a5f.zip
Add a test case
-rw-r--r--src/tools/rust-analyzer/crates/hir-ty/src/tests/regression.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-ty/src/tests/regression.rs b/src/tools/rust-analyzer/crates/hir-ty/src/tests/regression.rs
index 540e219920c..b371e5856b0 100644
--- a/src/tools/rust-analyzer/crates/hir-ty/src/tests/regression.rs
+++ b/src/tools/rust-analyzer/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<'?, ()>
 }