rust/tests/ui/index_message.rs

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

5 lines
97 B
Rust
Raw Normal View History

fn main() {
let z = ();
2017-06-09 19:05:14 +02:00
let _ = z[0]; //~ ERROR cannot index into a value of type `()`
}