#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(cold_path)] use core::hint::cold_path; fn foo(x: &[i32]) { if let Some(first) = x.get(0) {} else { cold_path(); } } fn bar(x: i32) -> i32 { match x { 1 => 10, 2 => 100, 3 => { cold_path(); 1000 } _ => { cold_path(); 10000 } } } fn main() {}