You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…eGomez
Fix corrected example in E0759.md
This pull request fixesrust-lang#86061, which was probably caused by a copy-paste error, where the supposedly corrected code example was also marked with `compile_fail`. Thus, the fact that the "correct" example actually _isn't_ correct was not caught by the doc-tests. This pull request removes the incorrect `compile_fail` annotation and fixes the example.
r? `@GuillaumeGomez`
I ran into the compiler error
E0759
, so I entered the following to gain more information:The explanation page shows the following code snippet, suggested as a fix:
But the code snippet does not compile. When I create the following
main.rs
file:then compilation fails with the message
Since the code snippet is a suggested fix, I would have expected this code to compile without issues.
I have tried this with the current nightly version:
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: