Rollup merge of #72071 - PankajChaudhary5:ErrorCode-E0687, r=davidtwco

Added detailed error code explanation for issue E0687 in Rust compiler.

Added proper error explanation for issue E0687 in the Rust compiler.
Error Code E0687

Sub Part of Issue #61137

r? @GuillaumeGomez
This commit is contained in:
Manish Goregaokar 2020-07-01 07:42:27 -07:00 committed by GitHub
commit 128fa2b981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 1 deletions

View file

@ -24,3 +24,4 @@ LL | fn bar(&self, x: fn(&'a u32)) {}
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0687`.

View file

@ -12,3 +12,4 @@ LL | fn baz(x: &impl Fn(&'a u32)) {}
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0687`.