-
-
Save rust-play/5c30cb33b54f4c4dead492dd135643b6 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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