Skip to content

Commit

Permalink
Rollup merge of rust-lang#112147 - zirconium-n:issue-110934, r=compil…
Browse files Browse the repository at this point in the history
…er-errors

add inline-const test for elided lifetimes being infer vars

Fixes rust-lang#110934
  • Loading branch information
matthiaskrgr authored Jun 1, 2023
2 parents 9c67e0c + e8c831a commit 63db586
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 63db586

Please sign in to comment.