5 ms·
I just tried that in nightly and it seems to work? Not sure what the issue with that is.
by zxzax 5y ago
I just tried that in nightly and it seems to work? Not sure what the issue with that is.
- ptato 5y agoIt works, but it isn't what they want. The compiler won't allow borrowing the str slices from the owned String field.
- edflsafoiewq 5y agoYes it will. https://news.ycombinator.com/item?id=27164504 https://news.ycombinator.com/item?id=27164504
- Kinrany 5y agoThis specific code compiles, you just can't create an instance of this struct and store references to `phrase` in `words`.