summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-40861.rs
blob: d8a8384a544f8e676c365f221b1ced88171707a1 (plain)
1
2
3
4
5
6
fn f(_: &[f32]) {}

fn main() {
    ()[f(&[1.0])];
    //~^ ERROR cannot index into a value of type `()`
}