-
Notifications
You must be signed in to change notification settings - Fork 13k
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]: index out of bounds #132765
Comments
@wxie7 it would be nice if you could minimize your examples to have as few errors as possible. when confronted with an example that has many errors, it is very confusing to try to figure out what's going on. I suspect only one or two of the errors are actually necessary. |
also helpful:
|
Reduced: trait LendingIterator {
type Item<'q>;
fn for_each(&self, _f: Box<fn(Self::Item<'_>)>) {}
}
fn f(_: ()) {}
fn main() {
LendingIterator::for_each(&(), f);
} Also ICEs in 1.70.0. |
Bisects to nightly-2022-07-23
|
|
Dig some more digging, the suggestion seems valid, at least in the sense that it doesn't like that the user hasn't fully defined a parameter that the
|
Code
Affected release channels
Rust Version
rustc 1.84.0-nightly (b91a3a0 2024-11-07)
binary: rustc
commit-hash: b91a3a0
commit-date: 2024-11-07
host: x86_64-unknown-linux-gnu
release: 1.84.0-nightly
LLVM version: 19.1.3
Current error output
Backtrace
Anything else?
This issue is similar to #122098; however, #122098 does not report an ICE on the current nightly version. The difference is the addition of a
main
function.The text was updated successfully, but these errors were encountered: