mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
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:
commit
20b25d233a
11
tests/ui/inline-const/elided-lifetime-being-infer-vars.rs
Normal file
11
tests/ui/inline-const/elided-lifetime-being-infer-vars.rs
Normal 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
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user