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 8aa870c commit b38d5b5Copy full SHA for b38d5b5
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: b1ec0a582e16cb6e21d9199c9b6df0f8c4c8f00c
+refs/heads/master: 1f52ddfe9ebd64891f14ec17efa8e2a014f8a439
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
trunk/src/test/run-pass/traits-default-method-trivial.rs
@@ -0,0 +1,20 @@
+//xfail-test
+
+trait Cat {
+ fn meow() -> bool;
+ fn scratch() -> bool;
6
+ fn purr() -> bool { true }
7
+}
8
9
+impl int : Cat {
10
+ fn meow() -> bool {
11
+ self.scratch()
12
+ }
13
+ fn scratch() -> bool {
14
+ self.purr()
15
16
17
18
+fn main() {
19
+ assert 5.meow();
20
0 commit comments