Skip to content

Integer fallback still somewhat present? #15201

Closed
@alexcrichton

Description

@alexcrichton
fn foo(_: *const ()) {}

fn bar() {
    let a = 3;
    foo(&a as *const _ as *const ());
}

The type of a is never mentioned, so it seems to be assuming int?

Nominating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions