diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-09-20 18:44:49 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-09-20 18:45:25 +0200 |
| commit | 5ee6304d8d738d05debfcb712ee57b024f5e1b95 (patch) | |
| tree | 1ef974629ddfd42fb980253810f6153c81367718 /tests/source | |
| parent | 0952d7354e91505104a61578392e60b5d12f1b71 (diff) | |
Fix struct overflows
Diffstat (limited to 'tests/source')
| -rw-r--r-- | tests/source/expr.rs | 8 | ||||
| -rw-r--r-- | tests/source/struct_lits.rs | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs index 4b5e262bd26..faa0d3775c7 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -173,11 +173,3 @@ 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 }; -} diff --git a/tests/source/struct_lits.rs b/tests/source/struct_lits.rs index ead7b749d5a..69f90879164 100644 --- a/tests/source/struct_lits.rs +++ b/tests/source/struct_lits.rs @@ -83,3 +83,11 @@ fn issue278() { b: 0, }; } + +fn struct_exprs() { + Foo + { a : 1, b:f( 2)}; + Foo{a:1,b:f(2),..g(3)}; + LoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongStruct { ..base }; + IntrinsicISizesContribution { content_intrinsic_sizes: IntrinsicISizes { minimum_inline_size: 0, }, }; +} |
