-
Notifications
You must be signed in to change notification settings - Fork 13.3k
impl Trait
doesn't understand that empty functions return ()
#36379
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-trait-system
Area: Trait system
A-type-system
Area: Type system
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Comments
This works today; E-needstest. |
@Mark-Simulacrum would a |
venkatagiri
added a commit
to venkatagiri/rust
that referenced
this issue
May 25, 2017
Mark-Simulacrum
added a commit
to Mark-Simulacrum/rust
that referenced
this issue
May 26, 2017
…=Mark-Simulacrum regression tests for ICEs closes rust-lang#36379 closes rust-lang#37550 closes rust-lang#37665 closes rust-lang#38160 closes rust-lang#38954 closes rust-lang#39362 r? @Mark-Simulacrum
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
May 26, 2017
…=Mark-Simulacrum regression tests for ICEs closes rust-lang#36379 closes rust-lang#37550 closes rust-lang#37665 closes rust-lang#38160 closes rust-lang#38954 closes rust-lang#39362 r? @Mark-Simulacrum
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
May 26, 2017
…=Mark-Simulacrum regression tests for ICEs closes rust-lang#36379 closes rust-lang#37550 closes rust-lang#37665 closes rust-lang#38160 closes rust-lang#38954 closes rust-lang#39362 r? @Mark-Simulacrum
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-trait-system
Area: Trait system
A-type-system
Area: Type system
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
The following should compile because
(): Default
:However, it fails with:
(Obviously, nobody will ever run into this in practice...)
The text was updated successfully, but these errors were encountered: