Skip to content

hover for type with new use<...> captures syntax shows {error} #18357

@azdavis

Description

@azdavis

rust-analyzer version: rust-analyzer version: 0.3.2154-standalone (9323b53 2024-10-20)

rustc version: rustc 1.82.0 (f6e511eec 2024-10-15)

editor or extension: VS Code v0.3.2154

code snippet to reproduce:

fn foo(x: &()) -> impl Sized + use<'_> {
  x
}

hover for ty with use captures causes error when displaying type

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolutionC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions