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