Skip to content

default unsafe impl erroneously is a syntax error #4718

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

Closed
Avi-D-coder opened this issue Jun 2, 2020 · 1 comment · Fixed by #4737
Closed

default unsafe impl erroneously is a syntax error #4718

Avi-D-coder opened this issue Jun 2, 2020 · 1 comment · Fixed by #4737

Comments

@Avi-D-coder
Copy link
Contributor

#![feature(trivial_bounds)]
#![feature(specialization)]
unsafe trait Foo { }
default unsafe impl Foo for u8 {}

playground

@Avi-D-coder Avi-D-coder changed the title default unsafe impl erroneously is a syntax error default unsafe impl or const erroneously is a syntax error Jun 3, 2020
@Avi-D-coder
Copy link
Contributor Author

Avi-D-coder commented Jun 3, 2020

default const also triggers this.
this comment is a dup of #4264

@Avi-D-coder Avi-D-coder changed the title default unsafe impl or const erroneously is a syntax error default unsafe impl erroneously is a syntax error Jun 3, 2020
@bors bors bot closed this as completed in e66c7b3 Jun 4, 2020
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

Successfully merging a pull request may close this issue.

1 participant