Skip to content

Commit ae106cf

Browse files
authored
Rollup merge of rust-lang#112147 - zirconium-n:issue-110934, r=compiler-errors
add inline-const test for elided lifetimes being infer vars Fixes rust-lang#110934
2 parents 75412ce + e8c831a commit ae106cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// check-pass
2+
3+
#![feature(inline_const)]
4+
5+
fn main() {
6+
let _my_usize = const {
7+
let a = 10_usize;
8+
let b: &'_ usize = &a;
9+
*b
10+
};
11+
}

0 commit comments

Comments
 (0)