X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_hir%2Fsrc%2Fdef.rs;h=db8807bad40b11985c88a37a87edd9831a5e88f7;hb=4c09a3345ab10b9a10a284cea1a1f3673bc9a414;hp=7416ad79aefd0075a960cb9d36caa14b0d1f0b2f;hpb=e209e85e39b4851c3ec122a45ddeabe318b2d522;p=rust.git diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs index 7416ad79aef..db8807bad40 100644 --- a/compiler/rustc_hir/src/def.rs +++ b/compiler/rustc_hir/src/def.rs @@ -312,6 +312,7 @@ pub enum Res { /// 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::()] { todo!() } } /// /// struct Bar([u8; baz::()]);