mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Rollup merge of #113386 - joshtriplett:style-guide-combinable-expressions, r=compiler-errors
style-guide: Expand example of combinable expressions to include arrays Arrays are allowed as combinable expressions, but none of the examples show that.
This commit is contained in:
commit
87f978d83c
@ -803,6 +803,16 @@ foo(|param| {
|
||||
action();
|
||||
foo(param)
|
||||
})
|
||||
|
||||
let x = combinable([
|
||||
an_expr,
|
||||
another_expr,
|
||||
]);
|
||||
|
||||
let arr = [combinable(
|
||||
an_expr,
|
||||
another_expr,
|
||||
)];
|
||||
```
|
||||
|
||||
Such behaviour should extend recursively, however, tools may choose to limit the
|
||||
|
Loading…
Reference in New Issue
Block a user