3 #![allow(incomplete_features)]
4 #![feature(inline_const_pat)]
5 const MMIO_BIT1: u8 = 4;
6 const MMIO_BIT2: u8 = 5;
9 let s = match read_mmio() {
11 const { 1 << MMIO_BIT1 } => "BAR",
12 const { 1 << MMIO_BIT2 } => "BAZ",
19 fn read_mmio() -> i32 {