Skip to content

Instantly share code, notes, and snippets.

Created Jan 23, 2021
What would you like to do?
Code shared from the Rust Playground
struct Foo(bool, i32);
fn main() {
let foo : Foo = Foo(true, 2);
let b = match foo {
my @ Foo(_, b) => b
println!("{}", b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment