]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #32376 - cyplo:cyplo_fix_E0368_documentation, r=steveklabnik
authorSteve Klabnik <steve@steveklabnik.com>
Mon, 21 Mar 2016 15:46:53 +0000 (11:46 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Mon, 21 Mar 2016 15:46:53 +0000 (11:46 -0400)
Documentation fix for E0368

Made the 'good' example compile.

I got to the [E0368 error page](https://doc.rust-lang.org/error-index.html#E0368) 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.

On the other hand the docstring contained `compile_fail` flag, which might indicate that this was intentional.
I am also assuming here that the `Rust Compiler Error Index` page is generated from the file I changed.

Please let me know what do you think. Thanks a lot !


Trivial merge