Twitter Feed: Post

Twitter Feed

@steveklabnik retweeted:

@lunasorcery ("luna 🐀") wrote:

#rustlang friends, I’m trying to better understand a thing

what are some real-world practical uses of zero-sized arrays, ie `[T; 0]` ?

I gather it’s a zero-sized type but with the alignment of T, which can be useful for some unsafe tricks; anything else?