On 6/7/20 7:25 PM, Jack Applegame wrote:
I think it should compile.

```
struct NonCopyable {
     int a;
     this(this) @disable;
}

void main() {
     NonCopyable[] arr = [NonCopyable(1), NonCopyable(2)]; // ok
     arr ~= NonCopyable(3); // fails
}
```

This is a bug, please file. What is likely happening is that the template is not moving the data to the underlying C call.

-Steve

Reply via email to