Skip to content

method calls on opaques in defining scope: auto deref steps results in ambiguity  #47

@lcnr

Description

@lcnr
#![feature(type_alias_impl_trait)]
fn main() {
    assert_eq!(foo().to_string(), "foo");
}

type Foo = impl std::fmt::Display;
fn foo() -> Foo {
    "foo"
}

this example has to compile but doesn't with the new solver

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