From 869536ed2c45bc5bdcdeabc92221cba36c3f7ec7 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sat, 16 Apr 2016 21:29:31 +0200 Subject: [PATCH] Adjust example for error E0225 It's using Copy as a trait object compatible trait, which is not appropriate, change to use a more typical Read + Send + Sync example. Also use whitespace around `+`. --- src/librustc_typeck/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index bef6c1ed43aa6..dbe412079b23b 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -2717,7 +2717,7 @@ Rust does not currently support this. A simple example that causes this error: ```compile_fail fn main() { - let _: Box; + let _: Box; } ``` @@ -2727,7 +2727,7 @@ following compiles correctly: ``` fn main() { - let _: Box; + let _: Box; } ``` "##,