Try this:

On 4/5/14 1:55 PM, Frank Huang wrote:
impl<T: Writer> MySerialization for T {
   fn write_my_string(&mut self, s: &str) -> IoResult<()> {
     ...
   }
}

impl StructToBeSerialized {
   fn save_to(&self, mut writer: &mut io::Writer) -> io::IoResult<()> {
     try!(writer.write_my_string(self.string_field_1)); // error at this
line
   }
}

This error will probably go away with DST.

Patrick

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to