Skip to content

Commit 0e660e4

Browse files
committed
Add a test for #2493
1 parent 06d509c commit 0e660e4

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

tests/source/expr.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,3 +370,17 @@ fn newlines_between_list_like_expr() {
370370
fn issue2178() {
371371
Ok(result.iter().map(|item| ls_util::rls_to_location(item)).collect())
372372
}
373+
374+
// #2493
375+
impl Foo {
376+
fn bar(&self) {
377+
{
378+
let x = match () {
379+
() => {
380+
let i;
381+
i == self.install_config.storage.experimental_compressed_block_size as usize
382+
}
383+
};
384+
}
385+
}
386+
}

tests/target/expr.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,19 @@ fn issue2178() {
395395
.map(|item| ls_util::rls_to_location(item))
396396
.collect())
397397
}
398+
399+
// #2493
400+
impl Foo {
401+
fn bar(&self) {
402+
{
403+
let x = match () {
404+
() => {
405+
let i;
406+
i == self.install_config
407+
.storage
408+
.experimental_compressed_block_size as usize
409+
}
410+
};
411+
}
412+
}
413+
}

0 commit comments

Comments
 (0)