blob: 521c54f8996703e13b90cc4586ac0aad154f6cb6 (
plain)
1
2
3
4
5
6
7
|
pub fn g(t: i32) -> i32 { t }
// This function imitates `dbg!` so that future changes
// to its macro definition won't make this test a dud.
#[macro_export]
macro_rules! d {
($e:expr) => { match $e { x => { $crate::g(x) } } }
}
|