News for hackers. Stuff that matters.
Re:Typestates in Rust (2018) by Rusky on Thursday October 31, 2019 @10:31PM (#21415797)
The reason for this requirement is lifetime subtyping: https://doc.rust-lang.org/nomicon/subtyping.html

Type parameter variance is inferred from usage (e.g. covariant for normal fields, contravariant for function arguments) and without a usage there's no way to infer it.

There are no comments on this comment yet.