We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adee37a commit 3f08284Copy full SHA for 3f08284
tests/rustdoc/inline_cross/auxiliary/repr.rs
@@ -0,0 +1,4 @@
1
+#[repr(C)]
2
+pub struct Foo {
3
+ field: u8,
4
+}
tests/rustdoc/inline_cross/repr.rs
@@ -0,0 +1,13 @@
+// Regression test for <https://github.com/rust-lang/rust/issues/110698>.
+// This test ensures that the re-exported items still have the `#[repr(...)]` attribute.
+
+// aux-build:repr.rs
5
6
+#![crate_name = "foo"]
7
8
+extern crate repr;
9
10
+// @has 'foo/struct.Foo.html'
11
+// @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(C)]'
12
+#[doc(inline)]
13
+pub use repr::Foo;
0 commit comments