-
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
ICE: compiler/rustc_middle/src/ty/subst.rs:529:17: type parameter T/#1
(T/1) out of range when substituting, substs=[Self]
#78671
Comments
This crashes in |
The ICE is caused by 08e2d46 cc @matthewjasper |
The following produces the same ICE but with less warnings and errors: trait CollectionFamily {
type Member<T>;
}
fn floatify() {
Box::new(Family) as &dyn CollectionFamily<Member=usize>
}
struct Family; |
Assigning |
ICE fixed in beta, but the output has an incorrect suggestion:
We need to correctly track the span for the obligation to suggest somewhat reasonable code. |
…=jackh726 Add GAT related tests Closes rust-lang#79949 Closes rust-lang#79636 Closes rust-lang#78671 Closes rust-lang#70303 Closes rust-lang#70304 Closes rust-lang#71176
…=jackh726 Add GAT related tests Closes rust-lang#79949 Closes rust-lang#79636 Closes rust-lang#78671 Closes rust-lang#70303 Closes rust-lang#70304 Closes rust-lang#71176
Code
Meta
rustc --version --verbose
:Error output
Backtrace
NOTE: The bug is found by our work-in-progress compiler testing tool Kira, and the test program is reduced/minimized by Perses
The text was updated successfully, but these errors were encountered: