add inline-const test for elided lifetimes being infer vars

This commit is contained in:
Ziru Niu 2023-06-01 01:16:03 +08:00
parent ad8304a0d5
commit e8c831a03b

View File

@ -0,0 +1,11 @@
// check-pass
#![feature(inline_const)]
fn main() {
let _my_usize = const {
let a = 10_usize;
let b: &'_ usize = &a;
*b
};
}