Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created Jan 23, 2021
Embed
What would you like to do?
Code shared from the Rust Playground
#![feature(bindings_after_at)]
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