We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code snippet causes an internal compiler error on my version of rust (rustc 1.75.0-nightly):
source_iter(vec![1]) -> fold(Vec::new, |accum: Vec<usize>, elem| {accum.push(elem)}) -> assert_eq([vec![1]]);
Note that the mistake is is that accum: Vec<usize> should be accum: &mut Vec<usize>.
accum: Vec<usize>
accum: &mut Vec<usize>
Also, I'm curious why the type of accum can't be inferred.
The text was updated successfully, but these errors were encountered:
Maybe rust-lang/rust#116658
Sorry, something went wrong.
fix: bump pinned Rust to fix ICE in surface syntax type inference, fix …
50851df
…hydro-project#951 Refs: hydro-project#951
2faafeb
189e81b
…hydro-project#951 (hydro-project#952) Refs: hydro-project#951
8e5cae5
MingweiSamuel
No branches or pull requests
The following code snippet causes an internal compiler error on my version of rust (rustc 1.75.0-nightly):
Note that the mistake is is that
accum: Vec<usize>
should beaccum: &mut Vec<usize>
.Also, I'm curious why the type of accum can't be inferred.
The text was updated successfully, but these errors were encountered: