rust/tests/ui/issues/issue-40861.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
107 B
Rust
Raw Normal View History

fn f(_: &[f32]) {}
fn main() {
()[f(&[1.0])];
2017-06-09 12:05:14 -05:00
//~^ ERROR cannot index into a value of type `()`
}