1 /* This file incorporates work covered by the following copyright and
3 * Copyright 2013 The Rust Project Developers. See the COPYRIGHT
4 * file at the top-level directory of this distribution and at
5 * http://rust-lang.org/COPYRIGHT.
7 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8 * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9 * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10 * option. This file may not be copied, modified, or distributed
11 * except according to those terms.
16 #![warn(missing_docs_in_private_items)]
18 // When denying at the crate level, be sure to not get random warnings from the
19 // injected intrinsics by the compiler.
21 #![feature(associated_type_defaults)]
23 //! Some garbage docs for the crate here
24 #![doc="More garbage"]
26 type Typedef
= String
;
27 pub type PubTypedef
= String
;
39 #[allow(missing_docs_in_private_items)]
46 pub mod pub_module_no_dox {}
52 #[allow(missing_docs_in_private_items)] pub fn foo4() {}
59 fn foo_with_impl(&self) {}
62 #[allow(missing_docs_in_private_items)]
65 fn foo_with_impl(&self) {}
70 fn foo_with_impl(&self) {}
73 #[allow(missing_docs_in_private_items)]
81 type AssociatedTypeDef
= Self;
86 type DocumentedTypeDef
= Self;
101 #[allow(missing_docs_in_private_items)] pub fn foo3() {}
104 #[allow(missing_docs_in_private_items)]
110 // should need to redefine documentation for implementations of traits
116 // It sure is nice if doc(hidden) implies allow(missing_docs), and that it
117 // applies recursively
149 #[allow(missing_docs_in_private_items)]
162 pub const FOO1
: u32 = 0;
163 #[allow(missing_docs_in_private_items)]
164 pub const FOO2
: u32 = 0;
166 pub const FOO3
: u32 = 0;
167 pub const FOO4
: u32 = 0;
172 pub static BAR1
: u32 = 0;
173 #[allow(missing_docs_in_private_items)]
174 pub static BAR2
: u32 = 0;
176 pub static BAR3
: u32 = 0;
177 pub static BAR4
: u32 = 0;
182 pub fn documented() {}
183 pub fn undocumented1() {}
184 pub fn undocumented2() {}
185 fn undocumented3() {}
189 pub fn also_documented() {}
190 pub fn also_undocumented1() {}
191 fn also_undocumented2() {}
195 pub mod public_interface
{
196 pub use internal_impl
::documented
as foo
;
197 pub use internal_impl
::undocumented1
as bar
;
198 pub use internal_impl
::{documented, undocumented2}
;
199 pub use internal_impl
::globbed
::*;