We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b873ae5 commit 287b881Copy full SHA for 287b881
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: fefeebce24eb429309d1aac8e61d97b6d814867d
+refs/heads/master: e71f261e3f9ca6921d166671f1e5b7a38e8e3a8b
trunk/src/test/run-pass/anon-obj-with-self-call.rs
@@ -22,4 +22,16 @@ fn main() {
22
23
assert (my_b.baz() == 2);
24
25
+ auto my_c = obj {
26
+ fn foo() -> int {
27
+ ret 3;
28
+ }
29
+ fn baz() -> int {
30
+ ret self.foo();
31
32
+ with my_a
33
+ };
34
+
35
+ assert (my_c.baz() == 3);
36
+ assert (my_c.bar() == 3);
37
}
0 commit comments