Closed lengyijun closed 2 years ago
As mentioned over at https://github.com/rust-lang/reference/pull/1228#issuecomment-1163656384, I don't think just adding a filename here is a good idea. There's no context as to what that means and doesn't flow with the existing text. If there are specific points missing, then they should be added. Also, this chapter is being rewritten over at #340, so I think it would be good to hold off on any changes until that lands.
I find src/test/ui/variance/variance-types.rs quite helpful in debugging variance.