Skip to content

Inference rules changed on 1.10 nightly #33657

Closed
@crumblingstatue

Description

@crumblingstatue
struct Foo;
struct Bar;

fn foo_ref_to_bar_ptr(foo: &Foo) -> *const Bar {
    foo as *const _ as _
}

This builds on 1.10 nightly, but inference fails on beta and stable.

If this is a desired change, it should probably be documented, and regression tests added.
If not, it should be made into an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions