]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/for-loop-macro.rs
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / for-loop-while / for-loop-macro.rs
1 // run-pass
2 macro_rules! var {
3     ( $name:ident ) => ( $name );
4 }
5
6 pub fn main() {
7     let x = [ 3, 3, 3 ];
8     for var!(i) in &x {
9         assert_eq!(*i, 3);
10     }
11 }