mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +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…
Add table
Add a link
Reference in a new issue