rust/src/test/compile-fail/issue-2356.rs

10 lines
179 B
Rust
Raw Normal View History

// xfail-test Resolve code for classes knew how to do this, impls don't
2012-08-25 11:15:32 -05:00
struct cat {
tail: int,
}
impl cat {
2012-08-25 11:15:32 -05:00
fn meow() { tail += 1; } //~ ERROR: Did you mean: `self.tail`
}