# Add compile error test for comptime slice-of-struct copy · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/16dcefaca5956af747c29d6ab1915cc955f81af9)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 16dcefaca5956af747c29d6ab1915cc955f81af9

Requested commit: 16dcefaca5956af747c29d6ab1915cc955f81af9

Commit: 16dcefaca5956af747c29d6ab1915cc955f81af9

Tree: 1d9eccf190b7a65a9ab9e78f1dd799de6ea55b4f

Author: Stevie Hryciw

Committer: Stevie Hryciw

## Message

```
Add compile error test for comptime slice-of-struct copy

Closes #6305. In the C++ implementation this hit a compiler assertion.
It is handled properly in the self-hosted version.

```

## Parents

- [6bba5a39e4a4eb2262052a6d218cf71795a9d704](https://git.cafe/gitcafe/zig/commit/6bba5a39e4a4eb2262052a6d218cf71795a9d704?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/16dcefaca5956af747c29d6ab1915cc955f81af9?format=markdown)
