Skip to content

FP non-exhaustive pattern: _ not covered recursive RPIT #22987

Description

@matthiaskrgr
fn rpit<'a: 'b, 'b: 'a>() -> impl Sized {
    let () = rpit::<'b, 'a>();
}
fn main() {}

this compiles with rustc but RA diagnostics show an error here

at crate ra, file /tmp/ra/src/main.rs: Error RustcHardError("E0005") from LineCol { line: 1, col: 8 } to LineCol { line: 1, col: 10 }: non-exhaustive pattern: `_` not covered

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions