summary refs log tree commit diff
path: root/src/test/compile-fail/vec-field.rs
blob: 89f74d67771d30c75b52ac7350ce3542dd5eaaa4 (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 = ~[1i];
    log(debug, v.some_field_name); //type error
}

fn main() { }