File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
src/test/rustdoc/inline_local Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ // Copyright 2018 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+
12+ /// docs for foo
13+ #[ deprecated( since = "1.2.3" , note = "text" ) ]
14+ #[ macro_export]
15+ macro_rules! foo {
16+ ( $( $tt: tt) * ) => { }
17+ }
18+
19+ // @has macro_by_example/macros/index.html
20+ pub mod macros {
21+ // @!has - 'pub use foo as bar;'
22+ // @has macro_by_example/macros/macro.bar.html
23+ // @has - '//*[@class="docblock"]' 'docs for foo'
24+ // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.2.3: text'
25+ // @has - '//a/@href' 'macro_by_example.rs.html#15-17'
26+ #[ doc( inline) ]
27+ pub use foo as bar;
28+ }
You can’t perform that action at this time.
0 commit comments