Skip to content

Commit

Permalink
Rollup merge of #112147 - zirconium-n:issue-110934, r=compiler-errors
Browse files Browse the repository at this point in the history
add inline-const test for elided lifetimes being infer vars

Fixes #110934
  • Loading branch information
matthiaskrgr authored Jun 1, 2023
2 parents 8f0e144 + e8c831a commit 20b25d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ui/inline-const/elided-lifetime-being-infer-vars.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// check-pass

#![feature(inline_const)]

fn main() {
let _my_usize = const {
let a = 10_usize;
let b: &'_ usize = &a;
*b
};
}

0 comments on commit 20b25d2

Please sign in to comment.