rust/tests/rustdoc/attributes-re-export.rs
Jonathan Brouwer 58418d881a
Fix rustdoc not correctly showing attributes with re-exports
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-27 23:31:25 +02:00

14 lines
305 B
Rust

// Tests that attributes are correctly copied onto a re-exported item.
//@ edition:2021
#![crate_name = "re_export"]
//@ has 're_export/fn.thingy2.html' '//pre[@class="rust item-decl"]' '#[no_mangle]'
pub use thingymod::thingy as thingy2;
mod thingymod {
#[no_mangle]
pub fn thingy() {
}
}