Closed
Description
fn f(_: &[f32]) {}
fn main() {
()[f(&[1.0])];
}
error: internal compiler error: /checkout/src/librustc_typeck/check/coercion.rs:693:
expr already has an adjustment on it!
Regressed between 1.8 and 1.9 and found by @kennytm in #40610.
Like #40610, it only happens when there's already an error, possibly from a suggestion attempt.
Meta: perhaps there should be a label for ICE-on-error.