book/listings/ch18-patterns-and-matching/listing-18-10/src/main.rs

8 lines
109 B
Rust

fn main() {
// ANCHOR: here
if let x = 5 {
println!("{x}");
};
// ANCHOR_END: here
}