#What is the difference between these types

1 messages · Page 1 of 1 (latest)

ornate drum
#

Can you please copy the error message exactly? The first one is not a valid type.

#

Or, hm, it is syntactically valid but useless.

#

Vec<String, i32>, depending on your perspective, either means nothing or means “a Vec whose memory allocator is an i32”, which is nonsense

#

So there is no reason ever to write Vec<String, i32>. If it appears somewhere, it is a mistake.