mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 21:47:04 +00:00
Merge pull request #1033 from marcusklaas/assignment-break
Add test for general assignment breaks
This commit is contained in:
commit
3d4bc8c84a
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user