Created
May 12, 2013 15:58
-
-
Save anonymous/5563999 to your computer and use it in GitHub Desktop.
nested BytesReader: Illegal anonymous lifetime: anonymous lifetimes are not permitted here
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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