We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c4b32c commit 1813ab5Copy full SHA for 1813ab5
src/test/run-pass/traits-default-method-self.rs
@@ -10,16 +10,16 @@
10
11
//xfail-test
12
13
-// Currently failing with an ICE in trans. (FIXME: #2794)
+// Currently failing with an ICE in trans. (FIXME: #4350)
14
15
trait Cat {
16
- fn meow() -> bool;
17
- fn scratch() -> bool { self.purr() }
18
- fn purr() -> bool { true }
+ fn meow(&self) -> bool;
+ fn scratch(&self) -> bool { self.purr() }
+ fn purr(&self) -> bool { true }
19
}
20
21
impl Cat for int {
22
- fn meow() -> bool {
+ fn meow(&self) -> bool {
23
self.scratch()
24
25
0 commit comments