diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-10-12 21:14:12 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-10-12 21:14:12 +0200 |
| commit | e6af5d2c835ea1a4d84517218336fa718f297107 (patch) | |
| tree | ae11a0d431e530cc1e572f35977f1b07708b631c /tests/source/expr.rs | |
| parent | 4bc43f6f35a7ae46c38e7395783c0d8c49e2c6f0 (diff) | |
Use visual block indentation for array literals
Diffstat (limited to 'tests/source/expr.rs')
| -rw-r--r-- | tests/source/expr.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs index 45f688693f6..c8bd6e5c859 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -169,6 +169,25 @@ fn arrays() { let y = [/* comment */ 1, 2 /* post comment */, 3]; + let xy = [ strukt { test123: value_one_two_three_four, turbo: coolio(), } , /* comment */ 1 ]; + + let a =WeightedChoice::new(&mut [Weighted { + weight: x, + item: 0, + }, + Weighted { + weight: 1, + item: 1, + }, + Weighted { + weight: x, + item: 2, + }, + Weighted { + weight: 1, + item: 3, + }]); + let z = [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz, q]; [ 1 + 3, 4 , 5, 6, 7, 7, fncall::<Vec<_>>(3-1)] |
