]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #106931 - Ezrashaw:docs-e0208, r=compiler-errors
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 19 Jan 2023 10:19:35 +0000 (11:19 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2023 10:19:35 +0000 (11:19 +0100)
commit246daa49ee5968966dec192057a9163b94e90601
treea027b982018ccbdca2c3dc29496e5cb57a9d9e8e
parent1a878df2b8d92c702548cb00bcf47b0af8176a97
parent708861e5b77d2600da523dc817bc831f7d7d7733
Rollup merge of #106931 - Ezrashaw:docs-e0208, r=compiler-errors

document + UI test `E0208` and make its output more user-friendly

Cleans up `E0208`'s output a lot. It could actually be useful for someone learning about variance now. I also added a UI test for it in `tests/ui/error-codes/` and wrote some docs for it.

r? `@GuillaumeGomez` another error code, can't be bothered to find the issue :P. Obviously there's some compiler stuff, so you'll have to hand it off.

Part of https://github.com/rust-lang/rust/issues/61137.