Rollup merge of #78118 - spastorino:inline-const-followups, r=petrochenkov

Inline const followups

r? @petrochenkov

Follow ups of #77124
This commit is contained in:
Yuki Okushi 2020-10-21 13:59:44 +09:00 committed by GitHub
commit de24210ebf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View file

@ -0,0 +1,12 @@
// run-pass
#![allow(incomplete_features)]
#![feature(inline_const)]
macro_rules! do_const_block{
($val:block) => { const $val }
}
fn main() {
let s = do_const_block!({ 22 });
assert_eq!(s, 22);
}