]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/missing-doc-impl.rs
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
[rust.git] / tests / ui / missing-doc-impl.rs
index bfa9ef01b0e9535e4f19fabe9ed0e8113b513695..d5724bf661c634ec89f3d83ac580a5c75facd6c6 100644 (file)
@@ -59,7 +59,9 @@ fn dummy(&self) {}
 }
 
 impl Foo {
-    pub fn foo() {}
+    pub fn new() -> Self {
+        Foo { a: 0, b: 0 }
+    }
     fn bar() {}
 }