summary refs log tree commit diff
path: root/src/test/compile-fail/index_message.rs
blob: d138efbe5e268a0a00e463802ada5dfdae380828 (plain)
1
2
3
4
fn main() {
    let z = ();
    log(debug, z[0]); //~ ERROR cannot index a value of type `()`
}