]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-40861.rs
Auto merge of #106827 - alexcrichton:update-llvm-to-15.0.7, r=cuviper
[rust.git] / tests / ui / issues / issue-40861.rs
1 fn f(_: &[f32]) {}
2
3 fn main() {
4     ()[f(&[1.0])];
5     //~^ ERROR cannot index into a value of type `()`
6 }