Skip to content

Instantly share code, notes, and snippets.

@mstewartgallus
Created April 17, 2013 18:34
Show Gist options
  • Save mstewartgallus/5406626 to your computer and use it in GitHub Desktop.
Save mstewartgallus/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