diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index bef6c1ed43a..dbe412079b2 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; } ``` "##,