Rollup merge of #78118 - spastorino:inline-const-followups, r=petrochenkov
Inline const followups r? @petrochenkov Follow ups of #77124
This commit is contained in:
commit
de24210ebf
3 changed files with 17 additions and 3 deletions
12
src/test/ui/inline-const/const-expr-macro.rs
Normal file
12
src/test/ui/inline-const/const-expr-macro.rs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue