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
Following code compiles on stable but fails on nightly:
fn main() { let v = [1u16, 2, 3, 4]; let idx = "1".parse().unwrap(); println!("{:?}", v.get(idx)); }
rustc version:
rustc 1.15.0-nightly (daf8c1dfc 2016-12-05) binary: rustc commit-hash: daf8c1dfce3b448fc581cc319f64632ec22bd0e1 commit-date: 2016-12-05 host: x86_64-unknown-linux-gnu release: 1.15.0-nightly LLVM version: 3.9
The text was updated successfully, but these errors were encountered:
Ah, this is from SliceIndex; <[T]>::get is generic in the index type now. Added in #36340
<[T]>::get
Sorry, something went wrong.
So that's why rustc can't infer type… It's not a big deal and it looks like it's know regression so I will just fix it in my crate, gilrs.
Fix for type inference error on nightly rustc
cebd46f
See rust-lang/rust#38323
No branches or pull requests
Following code compiles on stable but fails on nightly:
rustc version:
The text was updated successfully, but these errors were encountered: