Skip to content

Commit

Permalink
Add test for general assignment breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusklaas committed Jun 4, 2016
1 parent 728eb00 commit 05188de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/source/assignment.rs
Expand Up @@ -14,3 +14,14 @@ fn main() {

single_line_fit = 5;single_lit_fit >>= 10;
}

fn break_meee() {
{
(block_start, block_size, margin_block_start, margin_block_end) = match (block_start,
block_end,
block_size) {
x => 1,
_ => 2,
};
}
}
10 changes: 10 additions & 0 deletions tests/target/assignment.rs
Expand Up @@ -16,3 +16,13 @@ fn main() {
single_line_fit = 5;
single_lit_fit >>= 10;
}

fn break_meee() {
{
(block_start, block_size, margin_block_start, margin_block_end) =
match (block_start, block_end, block_size) {
x => 1,
_ => 2,
};
}
}

0 comments on commit 05188de

Please sign in to comment.