Skip to content

Specifying behavior relating to auto traits more precisely #26

Open
@vandenheuvel

Description

@vandenheuvel

Consider the following program.

auto trait Marker {}
struct A;
struct B;
impl !Marker for &A {}

This would mean that (&B): Marker doesn't hold. Do we want it to? Idk. In std, impls for builtin types are defined for all T, so this won't be a visible change currently. For that reason, I think it's not worth trying to think about different behavior here.

[...] make sure we better define these semantics (or at least consider it again when it's better defined).

Originally posted by @jackh726 in rust-lang/rust#77152 (comment)

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