Skip to content

Commit bb5c079

Browse files
committed
Add test case for #2356
1 parent 33ba097 commit bb5c079

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
struct cat {
2+
tail: int;
3+
fn meow() { tail += 1; } //~ ERROR: Did you mean: `self.tail`
4+
}

0 commit comments

Comments
 (0)