]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/type_check/mod.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_borrowck / src / type_check / mod.rs
index c4a190b44cbd4816c10bb732e84ab62f4b5a5680..4b905c23e156a069939798ea253be7aaeb8be9a1 100644 (file)
@@ -971,7 +971,7 @@ pub enum Locations {
     /// things like the type of the return slot. Consider this
     /// example:
     ///
-    /// ```
+    /// ```compile_fail,E0515
     /// fn foo<'a>(x: &'a u32) -> &'a u32 {
     ///     let y = 22;
     ///     return &y; // error