Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying behavior relating to auto traits more precisely #26

Open
vandenheuvel opened this issue Sep 24, 2020 · 0 comments
Open

Specifying behavior relating to auto traits more precisely #26

vandenheuvel opened this issue Sep 24, 2020 · 0 comments

Comments

@vandenheuvel
Copy link

vandenheuvel commented Sep 24, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant