Skip to content

Instantly share code, notes, and snippets.

@basic-calculus
Created April 17, 2013 18:34
Show Gist options
  • Select an option

  • Save basic-calculus/5406626 to your computer and use it in GitHub Desktop.

Select an option

Save basic-calculus/5406626 to your computer and use it in GitHub Desktop.
Rust Compiler Fails to properly compile data structures that contain static lists
struct T (&'static [int]);
static t : T = T (&'static [5, 4, 3]);
fn main () {
io::println (fmt! ("%?", t));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment