]> git.lizzy.rs Git - rust.git/commitdiff
Add a `Self: Sized` bound
authorJonas Schievink <jonasschievink@gmail.com>
Sat, 15 Jun 2019 17:07:56 +0000 (19:07 +0200)
committerJonas Schievink <jonasschievink@gmail.com>
Fri, 21 Feb 2020 18:41:22 +0000 (19:41 +0100)
src/test/ui/lint/lint-missing-doc.rs

index a2466d28fb0284ac88758ed0d03fe374dac3df5c..77f9a3770a3392972657436b0b5d0f8389fabff9 100644 (file)
@@ -60,7 +60,7 @@ fn dummy(&self) { }
 }
 
 /// dox
-pub trait E {
+pub trait E: Sized {
     type AssociatedType; //~ ERROR: missing documentation for an associated type
     type AssociatedTypeDef = Self; //~ ERROR: missing documentation for an associated type