Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprustc panics on fn that returns associated struct tuple with Self #38919
Comments
This comment has been minimized.
This comment has been minimized.
|
This is fixed on 1.14 stable, and on |
arielb1
added
the
regression-from-stable-to-beta
label
Jan 9, 2017
nikomatsakis
added
I-nominated
T-compiler
labels
Jan 11, 2017
This comment has been minimized.
This comment has been minimized.
|
cc @jseyfried @eddyb -- any idea what this is? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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). |
eddyb
added
the
E-easy
label
Jan 11, 2017
This comment has been minimized.
This comment has been minimized.
|
@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 ( |
vandenoever commentedJan 8, 2017
A function that returns an associated struct tuple such as that starts with
Self::such asSelf::Type(0)causes a panic.This
lib.rsgives a panic inrustc 1.15.0-nightly.