about summary refs log tree commit diff
path: root/src/test/compile-fail/vec-field.rs
blob: 9e2c54003fe64dcd83a3f1417fc67fba7e42018a (plain)
1
2
3
4
5
6
7
8
9
// error-pattern:attempted access of field some_field_name on type [int]
// issue #367

fn f() {
    let v = [1];
    log v.some_field_name; //type error
}

fn main() { }