File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ // This test ensures that if an item is inlined from two different `use`,
2+ // then it will use attributes from both of them.
3+ // This is a regression test for <https://github.com/rust-lang/rust/issues/143107>.
4+
5+ #![ feature( no_core) ]
6+ #![ no_core]
7+ #![ no_std]
8+ #![ crate_name = "foo" ]
9+
10+ //@ has 'foo/struct.Foo.html'
11+ //@ has - '//*[@class="docblock"]' 'Foobar Blob'
12+
13+ //@ has 'foo/struct.Another.html'
14+ //@ has - '//*[@class="docblock"]' 'Tarte Tatin'
15+
16+ mod raw {
17+ /// Blob
18+ pub struct Foo ;
19+
20+ /// Tatin
21+ pub struct Another ;
22+ }
23+
24+ /// Foobar
25+ pub use raw:: Foo ;
26+
27+ // Glob reexport attributes are ignored.
28+ /// Baz
29+ pub use raw:: * ;
30+
31+ /// Tarte
32+ pub use raw:: Another as Another ;
You can’t perform that action at this time.
0 commit comments