Created
June 13, 2013 16:00
-
-
Save SiegeLord/5774894 to your computer and use it in GitHub Desktop.
Array impl
This file contains hidden or 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
enum PlotOption<'self> | |
{ | |
Caption(&'self str), | |
} | |
impl<'self> &'self [PlotOption<'self>] | |
{ | |
} | |
fn main() | |
{ | |
} | |
/* | |
bin.rs:6:0: 9:1 error: no base type found for inherent implementation; implement a trait or new type instead | |
bin.rs:6 impl<'self> &'self [PlotOption<'self>] | |
bin.rs:7 { | |
bin.rs:8 | |
bin.rs:9 } | |
bin.rs:6:0: 9:1 error: cannot associate methods with a type outside the crate the type is defined in; define and implement a trait or new type instead | |
bin.rs:6 impl<'self> &'self [PlotOption<'self>] | |
bin.rs:7 { | |
bin.rs:8 | |
bin.rs:9 } | |
error: aborting due to 2 previous errors | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment