Skip to content

Instantly share code, notes, and snippets.

@dradtke
Created April 17, 2014 15:41
Show Gist options
  • Select an option

  • Save dradtke/10992950 to your computer and use it in GitHub Desktop.

Select an option

Save dradtke/10992950 to your computer and use it in GitHub Desktop.
Example of Rust function clone error
struct MyStruct;
#[deriving(Clone)]
struct Container {
func: MyFunc,
}
type MyFunc = fn(&mut MyStruct);
fn main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment