diff options
| author | Sebastian Ullrich <sebasti@nullri.ch> | 2015-09-20 15:18:41 +0200 |
|---|---|---|
| committer | Sebastian Ullrich <sebasti@nullri.ch> | 2015-09-20 15:47:21 +0200 |
| commit | 9bd502ad54a1ccea30d79e1cf5667fa9705fc221 (patch) | |
| tree | 79991b6ccaf86058185167604c77365c7c526394 /tests/source/expr.rs | |
| parent | ce2c4f6be61305c8bb487e0f7cae760f5918fe07 (diff) | |
Fix negative overflow and missing '..' on struct lit base exprs
Diffstat (limited to 'tests/source/expr.rs')
| -rw-r--r-- | tests/source/expr.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs index faa0d3775c7..4b5e262bd26 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -173,3 +173,11 @@ fn arrays() { [ 1 + 3, 4 , 5, 6, 7, 7, fncall::<Vec<_>>(3-1)] } + +fn struct_exprs() { + Foo + { a : 1, b:f( 2)}; + Foo{a:1,b:f(2),..g(3)}; + // FIXME: should be wrapped (#231) + LoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongStruct { ..base }; +} |
