rust/src/test/compile-fail/vec-field.rs

10 lines
186 B
Rust
Raw Normal View History

// 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() { }