2025-06-27 12:29:26 +02:00
|
|
|
// Tests that attributes are correctly copied onto a re-exported item.
|
|
|
|
|
//@ edition:2021
|
|
|
|
|
#![crate_name = "re_export"]
|
|
|
|
|
|
2025-07-23 00:00:01 +00:00
|
|
|
//@ has 're_export/fn.thingy2.html' '//pre[@class="rust item-decl"]' '#[unsafe(no_mangle)]'
|
2025-06-27 12:29:26 +02:00
|
|
|
pub use thingymod::thingy as thingy2;
|
|
|
|
|
|
|
|
|
|
mod thingymod {
|
|
|
|
|
#[no_mangle]
|
|
|
|
|
pub fn thingy() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|