rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.75k stars 256 forks source link

Add test link to subtype #368

Closed lengyijun closed 2 years ago

lengyijun commented 2 years ago

I find src/test/ui/variance/variance-types.rs quite helpful in debugging variance.

ehuss commented 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.