mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Add a test case
This commit is contained in:
parent
92a6e51b20
commit
a871730142
1 changed files with 2 additions and 0 deletions
|
@ -2051,6 +2051,8 @@ fn test() {
|
||||||
// ^ Wrap<'?, ()>
|
// ^ Wrap<'?, ()>
|
||||||
let x = S::foo::<&()>(&S);
|
let x = S::foo::<&()>(&S);
|
||||||
// ^ Wrap<'?, ()>
|
// ^ Wrap<'?, ()>
|
||||||
|
let x = S.foo::<'static, &()>();
|
||||||
|
// ^ Wrap<'?, ()>
|
||||||
let x = S.foo::<&()>();
|
let x = S.foo::<&()>();
|
||||||
// ^ Wrap<'?, ()>
|
// ^ Wrap<'?, ()>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue