summaryrefslogtreecommitdiffstats
path: root/tests/ui/index_message.rs
blob: 87e0cde591959a15bd15fb301ee10c116306a650 (plain)
1
2
3
4
fn main() {
    let z = ();
    let _ = z[0]; //~ ERROR cannot index into a value of type `()`
}