]> git.proxmox.com Git - rustc.git/blob - src/test/ui/inline-const/const-expr-macro.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / inline-const / const-expr-macro.rs
1 // run-pass
2
3 #![allow(incomplete_features)]
4 #![feature(inline_const)]
5 macro_rules! do_const_block{
6 ($val:block) => { const $val }
7 }
8
9 fn main() {
10 let s = do_const_block!({ 22 });
11 assert_eq!(s, 22);
12 }