Skip to content

Inlayhints unresolved for self: &Self #20249

@A4-Tacks

Description

@A4-Tacks

rust-analyzer version: rust-analyzer 1.90.0-nightly (a001497 2025-07-14)

rustc version: rustc 1.90.0-nightly (a001497 2025-07-14)

editor or extension: VIM-9.1

code snippet to reproduce:

struct Foo;
impl Foo {
    fn foo(self: &Self, s: &str) -> &Self {
        self
    }
}

Current inlayhints:

Image

Expected inlayhints:

fn foo<'0, '1>(self: &'0 Self, s: &'1 str) -> &'0 Self

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions