---
title: "Discussion on \"Why Rust does not need variance annotations\" | Hashnode"
description: "Discussion on \"Why Rust does not need variance annotations\". I have now heard twice (the last time was in that podcast) that Rust does not need variance annotations for generics because it has lifetime annotations.\nThis sentence can be quite puzzling for someone coming from a language like Scala, or for a Rust..."
url: "https://hashnode.com/posts/why-rust-does-not-need-variance-annotations/651154e55e4a73939291d613"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Rust does not need variance annotations](https://etorreborre.blog/why-rust-does-not-need-variance-annotations?utm_source=hashnode&utm_medium=feed)

I have now heard twice (the last time was in that podcast) that Rust does not need variance annotations for generics because it has lifetime annotations. This sentence can be quite puzzling for someone coming from a language like Scala, or for a Rust...

Sep 25, 2023 · 5 min read · etorreborre.blog  
Read the article

-   [#scala](https://hashnode.com/tag/scala)
-   [#rust](https://hashnode.com/tag/rust)
-   [#types](https://hashnode.com/tag/types)

## Written by

[Eric Torreborre](https://hashnode.com/@etorreborre)

@etorreborre · Alençon, France

  
[View profile](https://hashnode.com/@etorreborre)

Software engineer in search of a galaxy brain

Software engineer at the intersection of functional programming, product development and open-source

## Responses 1

Markdown supported · ⌘↵ to post

No responses yet.
