Skip to content

Instantly share code, notes, and snippets.

@SiegeLord
Created June 13, 2013 16:00
Show Gist options
  • Save SiegeLord/5774894 to your computer and use it in GitHub Desktop.
Save SiegeLord/5774894 to your computer and use it in GitHub Desktop.
Array impl
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