Add test case for #2356
This commit is contained in:
parent
33ba097069
commit
bb5c07922f
1 changed files with 4 additions and 0 deletions
4
src/test/compile-fail/issue-2356.rs
Normal file
4
src/test/compile-fail/issue-2356.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
struct cat {
|
||||
tail: int;
|
||||
fn meow() { tail += 1; } //~ ERROR: Did you mean: `self.tail`
|
||||
}
|
Loading…
Reference in a new issue