]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/pub-use-extern-macros.rs
Auto merge of #53369 - pnkfelix:partial-53351-make-some-ported-compile-fail-tests...
[rust.git] / src / test / rustdoc / pub-use-extern-macros.rs
1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // aux-build:pub-use-extern-macros.rs
12
13 extern crate macros;
14
15 // @has pub_use_extern_macros/macro.bar.html
16 // @!has pub_use_extern_macros/index.html '//code' 'pub use macros::bar;'
17 pub use macros::bar;
18
19 // @has pub_use_extern_macros/macro.baz.html
20 // @!has pub_use_extern_macros/index.html '//code' 'pub use macros::baz;'
21 #[doc(inline)]
22 pub use macros::baz;
23
24 // @!has pub_use_extern_macros/macro.quux.html
25 // @!has pub_use_extern_macros/index.html '//code' 'pub use macros::quux;'
26 #[doc(hidden)]
27 pub use macros::quux;