Skip to content

Commit

Permalink
Improve E0053 and E0066 error explanations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Hamann committed May 14, 2015
1 parent d636b5c commit 588777f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/librustc_typeck/diagnostics.rs
Expand Up @@ -65,9 +65,8 @@ impl Foo for Bar {
"##,

E0053: r##"
In a trait method implementation, the function signature must match exactly.
This error indicates a mutability mismatch between a trait method signature
and the signature of the implementation.
For any given method of a trait, the mutabilities of the parameters must match
between the trait definition and the implementation.
Here's an example where the mutability of the `self` parameter is wrong:
Expand Down Expand Up @@ -130,13 +129,13 @@ exactly once.
"##,

E0066: r##"
Box placement expressions (like C++'s "placement new") do not support any
Box placement expressions (like C++'s "placement new") do not yet support any
place expression except the exchange heap (i.e. `std::boxed::HEAP`).
Furthermore, the syntax is changing to use `in` instead of `box`. See [RFC
470][rfc470] and [RFC 809][rfc809] for more details.
Furthermore, the syntax is changing to use `in` instead of `box`. See [RFC 470]
and [RFC 809] for more details.
[rfc470]: https://github.com/rust-lang/rfcs/pull/470
[rfc809]: https://github.com/rust-lang/rfcs/pull/809
[RFC 470]: https://github.com/rust-lang/rfcs/pull/470
[RFC 809]: https://github.com/rust-lang/rfcs/pull/809
"##,

E0067: r##"
Expand Down

0 comments on commit 588777f

Please sign in to comment.