#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(assert_matches)] use std::assert_matches::debug_assert_matches; fn main() { let a = Some(345); let b = Some(56); debug_assert_matches!(a, Some(_)); debug_assert_matches!(b, Some(_)); debug_assert_matches!(a, Some(345)); debug_assert_matches!(a, Some(345) | None); debug_assert_matches!(a, Some(x) if x > 100); }