It took me a few extra seconds to parse the headline. ("footgun" didn't help) Is
<Vec<_>>()
perhaps to become another ¯\_(ツ)_/¯
? <Vec<_>>()
perhaps to become another ¯\_(ツ)_/¯
?"Identifying Rust's collect:<Vec<_>>() memory leak footgun"
but the actual title of the blog post is:
"Identifying Rust's collect::<Vec<_>>() memory leak footgun"
That extra colon matters to Rust's syntax.
Sidenote, `<Vec<_>>` is missing the best part - the fish head, to become `::<Vec<_>>`, aka `::<>` - the Turbo Fish :D
I admit to using this syntax more than necessary just so i can write a turbofish :D
edit: Wait no, `<>` is the head - isn't it. hah. So i guess it's missing the fins? /shrug