We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 754d3e5 commit 1b29e03Copy full SHA for 1b29e03
tests/rustdoc/reexport/merge-glob-and-non-glob.rs
@@ -0,0 +1,23 @@
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
+mod raw {
14
+ /// Blob
15
+ pub struct Foo;
16
+}
17
18
+/// Foobar
19
+pub use raw::Foo;
20
21
+// Glob reexport attributes are ignored.
22
+/// Baz
23
+pub use raw::*;
0 commit comments