Skip to content

Commit

Permalink
Add a test for rust-lang#2493
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Mar 8, 2018
1 parent 06d509c commit 0e660e4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/source/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,17 @@ fn newlines_between_list_like_expr() {
fn issue2178() {
Ok(result.iter().map(|item| ls_util::rls_to_location(item)).collect())
}

// #2493
impl Foo {
fn bar(&self) {
{
let x = match () {
() => {
let i;
i == self.install_config.storage.experimental_compressed_block_size as usize
}
};
}
}
}
16 changes: 16 additions & 0 deletions tests/target/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,19 @@ fn issue2178() {
.map(|item| ls_util::rls_to_location(item))
.collect())
}

// #2493
impl Foo {
fn bar(&self) {
{
let x = match () {
() => {
let i;
i == self.install_config
.storage
.experimental_compressed_block_size as usize
}
};
}
}
}

0 comments on commit 0e660e4

Please sign in to comment.