提交 09011077 编写于 作者: C Corey Richardson

rollup merge of #19553: sfackler/issue-19543

Closes #19543
......@@ -34,6 +34,7 @@
pub mod rt;
#[experimental = "core and I/O reconciliation may alter this definition"]
/// The type returned by formatter methods.
pub type Result = result::Result<(), Error>;
/// The error type which is returned from formatting a message into a stream.
......
......@@ -1428,6 +1428,7 @@ fn check_item(&mut self, cx: &Context, it: &ast::Item) {
ast::ItemEnum(..) => "an enum",
ast::ItemStruct(..) => "a struct",
ast::ItemTrait(..) => "a trait",
ast::ItemTy(..) => "a type alias",
_ => return
};
self.check_missing_docs_attrs(cx, Some(it.id), it.attrs.as_slice(),
......
......@@ -17,6 +17,9 @@
//! Some garbage docs for the crate here
#![doc="More garbage"]
type Typedef = String;
pub type PubTypedef = String; //~ ERROR: missing documentation
struct Foo {
a: int,
b: int,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册