]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir/src/def.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_hir / src / def.rs
index 324e110005717ac6517f4f357e4b4dc7c08cc1a2..ac33a963027f91f10e227d222cb71d25588eab4b 100644 (file)
@@ -312,6 +312,7 @@ pub enum Res<Id = hir::HirId> {
     /// HACK(min_const_generics): self types also have an optional requirement to **not** mention
     /// any generic parameters to allow the following with `min_const_generics`:
     /// ```
+    /// # struct Foo;
     /// impl Foo { fn test() -> [u8; std::mem::size_of::<Self>()] { todo!() } }
     ///
     /// struct Bar([u8; baz::<Self>()]);