Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created January 23, 2021 15:11
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/5c30cb33b54f4c4dead492dd135643b6 to your computer and use it in GitHub Desktop.
Save rust-play/5c30cb33b54f4c4dead492dd135643b6 to your computer and use it in GitHub Desktop.
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