]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/fn_ctxt/checks.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_typeck / src / check / fn_ctxt / checks.rs
index 616aa11f00a6b638870cfa61e6f9bf4c7463ee9f..d7a817f67e0cd1f94791d5f8dbb82c9c910bbd6d 100644 (file)
@@ -1467,7 +1467,7 @@ pub(in super::super) fn check_block_with_expected(
 
     /// A common error is to add an extra semicolon:
     ///
-    /// ```
+    /// ```compile_fail,E0308
     /// fn foo() -> usize {
     ///     22;
     /// }