We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The following code compiles but segfaults when run:
trait F<T> { fn f(self); } impl <T> ~[T] : F<T> { fn f(self) {} } fn main() { (~[1]).f(); }
Changing f to take &self makes it work.
f
&self
This might be related to #4132