Skip to content

Commit 3f08284

Browse files
Add regression test for #110698
1 parent adee37a commit 3f08284

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[repr(C)]
2+
pub struct Foo {
3+
field: u8,
4+
}

tests/rustdoc/inline_cross/repr.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/110698>.
2+
// This test ensures that the re-exported items still have the `#[repr(...)]` attribute.
3+
4+
// 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

Comments
 (0)