Rollup merge of #112147 - zirconium-n:issue-110934, r=compiler-errors

add inline-const test for elided lifetimes being infer vars

Fixes #110934
This commit is contained in:
Matthias Krüger 2023-06-01 22:47:32 +02:00 committed by GitHub
commit 20b25d233a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
};
}