blob: c714060619c16482f78b651abb4b58df80c004d6 [file]
#![feature(pattern_types)]
use std::pat::pattern_type;
// EMIT_MIR pattern_types.main.runtime-optimized.after.mir
fn main() {
// CHECK: debug x => const 2_u32 is 1..
let x: pattern_type!(u32 is 1..) = unsafe { std::mem::transmute(2) };
// CHECK: debug y => const {transmute(0x00000000): pattern_type!(u32 is 1..)}
let y: pattern_type!(u32 is 1..) = unsafe { std::mem::transmute(0) };
}