From efb5a85e59c07075bf39969ff4dc6390f49a8794 Mon Sep 17 00:00:00 2001 From: Nick Hamann Date: Tue, 19 May 2015 16:51:28 -0500 Subject: [PATCH] Small improvements for explanations of E0250, E0368, E0372. --- src/librustc_typeck/diagnostics.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 1c794e7f257e..0f381b590de8 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -979,10 +979,10 @@ const C: [u32; 0.0] = []; // error "##, E0250: r##" -This means there was an error while evaluating the expression for the length of -a fixed-size array type. +There was an error while evaluating the expression for the length of a fixed- +size array type. -Some examples of code that produces this error are: +Some examples of this error are: ``` // divide by zero in the length expression @@ -1032,9 +1032,7 @@ impl Foo for Bar { E0368: r##" This error indicates that a binary assignment operator like `+=` or `^=` was -applied to the wrong types. - -A couple examples of this are as follows: +applied to the wrong types. For example: ``` let mut x: u16 = 5; @@ -1097,8 +1095,7 @@ Trying to implement a trait for a trait object (as in `impl Trait1 for Trait2 { ... }`) does not work if the trait is not object-safe. Please see the [RFC 255] for more details on object safety rules. -[RFC 255]:https://github.com/rust-lang/rfcs/blob/master/text/0255-object-\ -safety.md +[RFC 255]: https://github.com/rust-lang/rfcs/pull/255 "## }