Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2013 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5563999 to your computer and use it in GitHub Desktop.
Save anonymous/5563999 to your computer and use it in GitHub Desktop.
nested BytesReader: Illegal anonymous lifetime: anonymous lifetimes are not permitted here
use core::io::{BytesReader, BytesWriter};
pub struct Socket {
recv: BytesReader,
send: BytesWriter
}
fn main() {
}
// Compile error
//test.rc:4:10: 4:21 error: Illegal anonymous lifetime: anonymous lifetimes are not permitted here
//test.rc:4 recv: BytesReader,
^~~~~~~~~~~
//error: aborting due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment