about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-26 09:44:14 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-11-26 16:49:35 -0800
commit51d146a56a0598b11efe79b5e2e6d5a70698abc1 (patch)
tree7176e06878850956dc6ecd098ded3943eeaab76e /src/test/codegen/stack-alloc-string-slice.cc
parent74f0ceba6c956e8a332993db8dd667de3c461aa2 (diff)
parent080e625dae129aad7db4e69d74fa0f767f700325 (diff)
downloadrust-51d146a56a0598b11efe79b5e2e6d5a70698abc1.tar.gz
rust-51d146a56a0598b11efe79b5e2e6d5a70698abc1.zip
rollup merge of #19266: aochagavia/const
With this PR, the following code works:

```
#![feature(tuple_indexing)]
struct MyStruct { field1: uint }

const S: MyStruct = MyStruct { field1: 42u };
const T: (uint,) = (42u,);

struct ConstCheck {
    array1: [int, ..S.field1],
    array2: [int, ..T.0],
}
```

Closes https://github.com/rust-lang/rust/issues/19244
Related https://github.com/rust-lang/rust/issues/19265
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions