mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 09:26:37 +00:00
Report that opaque types are not allowed in impls even in the presence of other errors fixes #96569 before this PR those useful errors were hidden because either `unused parameter` or `only traits defined in the current crate can be implemented for arbitrary types` got emitted first.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.