Skip to content

Referencing fn pointers with associated types of references ICEs #38381

Closed
@sgrif

Description

@sgrif

Example reproduction script:

use std::ops::Deref;

fn main() {
    let x: fn(&i32) -> <&i32 as Deref>::Target = unimplemented!();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions