Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created January 24, 2020 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/af6aafc4032ba7140649b25a0311e3bd to your computer and use it in GitHub Desktop.
Save rust-play/af6aafc4032ba7140649b25a0311e3bd to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
struct A {
a: usize,
b: &'static str,
}
const LIST: [A; 2] = [
A { a: 1, b: "hello" }, A { a: 2, b: "w" },
];
fn main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment