Add a test case

This commit is contained in:
Shoyu Vanilla 2024-07-31 10:47:13 +09:00 committed by GitHub
parent 92a6e51b20
commit a871730142
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2051,6 +2051,8 @@ fn test() {
// ^ Wrap<'?, ()>
let x = S::foo::<&()>(&S);
// ^ Wrap<'?, ()>
let x = S.foo::<'static, &()>();
// ^ Wrap<'?, ()>
let x = S.foo::<&()>();
// ^ Wrap<'?, ()>
}