]> git.lizzy.rs Git - rust.git/commit
Documentation fix for E0368
authorCyryl Płotnicki-Chudyk <cyplo@cyplo.net>
Sun, 20 Mar 2016 15:09:54 +0000 (16:09 +0100)
committerCyryl Płotnicki-Chudyk <cyplo@cyplo.net>
Sun, 20 Mar 2016 18:27:00 +0000 (19:27 +0100)
commit903bcb84a1f3a9d042810b3e04b874ebf9a12216
treed66823bbf64e3f3566f82898b67e0c85e33cab4a
parent173676efdc8a9f1f2a86d37c08a104e2e505f9e4
Documentation fix for E0368

Made the 'good' example compile.

I got to the E0368 error page by following the link in the output of the
compiler. My understanding is that the first example is 'bad' and the
second one is 'good'. Following that logic, I pasted the second example
into the file and to my surprise it did not compile. This commit fixes
the example to make it paste-able.
src/librustc_typeck/diagnostics.rs