blob: 7553fcc4e01cb5563e40f56afb2208a5e36c0272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// run-pass
macro_rules! format_mbe {
($tt:tt) => {
{
#[allow(unused_variables)]
let a = 123;
format!($tt)
}
};
}
fn main() {
let a = 0;
assert_eq!(format_mbe!("{a}"), "0");
}
|