-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustc panics on fn that returns associated struct tuple with Self #38919
Comments
This is fixed on 1.14 stable, and on |
cc @jseyfried @eddyb -- any idea what this is? |
How does this get past UFCS lookup? Are we supposed to error elsewhere? EDIT: Reduced: fn foo<T: Iterator>() {
T::Item;
} EDIT2: Alright, it's my fault (from #37402 - amazing that we don't have a test for this). |
@est31 Huh, the problematic change is from November, and playpen still shows the same ICE for my reduced testcase, I wonder how the original one gets the new error on nightly ( |
A function that returns an associated struct tuple such as that starts with
Self::
such asSelf::Type(0)
causes a panic.This
lib.rs
gives a panic inrustc 1.15.0-nightly
.The text was updated successfully, but these errors were encountered: